njFloor Japanese
<-|INDEX|->
Returns the largest integer not greater than n (floor function).

FORMAT

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

PARAMETERS

n
arbitrary real number

RETURN VALUE

Largest integer that is not greater than n.

FUNCTION


EXAMPLE

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

NOTES


RELATED TOPICS

njCeil
njRoundOff

njFloor
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997