Ninja Library - Mathematical Function
njCeil
Returns the smallest integer not less than n (ceiling function)
FORMAT
Float njCeil( n )
Float n
PARAMETER
n
Arbitrary real number
RETURN
Smallest integer not less than n
DESCRIPTION
Determines the smallest integer that is not less than real number n and returns the value of the result.
EXAMPLE
y1 = njCeil( 2.8f ); y2 = njCeil( -2.8f ); % Result % y1 = 3.000000 y2 = -2.000000
REFERENCE
njFloor
()
njRoundOff
()
njCeil
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999