njCeil Japanese
<-|INDEX|->
Returns the smallest integer not less than n (ceiling function).

FORMAT

#include <Ninja.h> 
Float njCeil( n )
Float n

PARAMETERS

n
arbitrary real number

RETURN VALUE

Smallest integer not less than n

FUNCTION


EXAMPLE

y1 = njCeil( 2.8f );
y2 = njCeil( -2.8f );
% Result %
y1 = 3.000000
y2 = -2.000000

NOTES


RELATED TOPICS

njFloor
njRoundOff

njCeil
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997