CEILING: the smallest integer ≥ function argument (F)
⇒Home
⇒Contents
⇒more on Programming
⇒ Example of a CEILING call in "Averages/Median" (RosettaCode)
result = CEILING( x )
The value of result is equal to the smallest integer greater than or equal to x
result = CEILING( 3.51 )
! returns result = 4
result = CEILING( -3.51 )
! returns result = -3
other integer conversions are:
result =
FLOOR
( -3.51 )
! returns result = -4
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