njRoundOff Japanese
<-|INDEX|->
Rounds down the decimal fraction.

FORMAT

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

PARAMETERS

n
arbitrary real number

RETURN VALUE

Integer resulting from rounding down

FUNCTION


EXAMPLE

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

NOTES


RELATED TOPICS

njCeil
njFloor
njRoundUp

njRoundOff
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997