FLOOR: the greatest integer ≤ function argument (F)
⇒Home
⇒Contents
⇒more on Programming
⇒ Example of a FLOOR call in "Sequence_of_non-squares" (RosettaCode)
result = FLOOR( x )
The value of result is equal to the greatest integer less than or equal to x
result = FLOOR( 3.51 )
! returns result = 3
result = FLOOR( -3.51 )
! returns result = -4
other integer conversions are:
result =
CEILING
( -3.51 )
! returns result = -3
result =
NINT
( -3.51 )
! returns result = -4
result =
INT
( -3.51 )
! returns result = -3
How your donation will be used, and how to get a HicEst key code in return
©2000-2010 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.
Impressum