|
Ceil, Floor 함수도 참고해보세요.
extern PACKAGE int __fastcall Ceil(constExtended X);
Description
Call Ceil to obtain the lowest integer greater than or equal to X. The absolute value of X must be less than MaxInt. For example:
Ceil(-2.8) = -2
Ceil(2.8) = 3
Ceil(-1.0) = -1
extern PACKAGE int __fastcall Floor(constExtended X);
Description
Call Floor to obtain the highest integer less than or equal to X. For example:
Floor(-2.8) = -3
Floor(2.8) = 2
Floor(-1.0) = -1
Note: The absolute value of X must be less than MaxInt.
김준원 님이 쓰신 글 :
: Double 의 값에서
:
: 124.12345677
:
: 의 경우
:
: Int 의 값에
:
: 124만 담고 싶습니다...
:
: 어찌해야 되는지요???
|