This is part of the HicEst documentation
INT(x): Convert x to Next Integer Equal or Below
Related functions are NINT, FLOOR, CEILING, ABS, MOD.
⇒Home
⇒Contents
⇒more Programming
result = INT( x )
for
ABS
( x ) < 1, INT ( x ) has the value zero
result = INT( 0.99 )
! returns result = 0
for
ABS
( x ) ≥ 1, INT ( x ) is the integer whose magnitude is the largest integer that does not exceed the magnitude of x and whose sign is the same as the sign of x
result = INT( 3.99 )
! returns result = 3
result = INT( -3.99 )
! returns result = -3
see also
NINT
,
FLOOR
, and
CEILING
.
⇒
Support HicEst
⇒
Impressum
©2000-2016 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.