Ninja Library - Mathematical Function

njFloor

Returns the largest integer not greater than n (floor function)

FORMAT

Float njFloor( n )
Float n

PARAMETER

 n  Arbitrary real number 

RETURN

Largest integer that is not greater than n

DESCRIPTION

Determines the largest integer that is not larger than real number n and returns the value found as the result.

EXAMPLE

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

REFERENCE

njCeil()
njRoundOff()

njFloor
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999