Ninja Library - Mathematical Function

njAbs

Returns an absolute value

FORMAT

Float njAbs( n )
Float n

PARAMETER

 n  Arbitrary real number 

RETURN

Absolute value of real number n

DESCRIPTION

Determines the absolute value of arbitrary real number n and returns that value as the result.

EXAMPLE

int ix = -4, iy;
double dx = -3.141593, dy;
iy = njAbs( ix );
dy = njAbs( dx );
% Result %
The absolute value of -4 is 4.
The absolute value of -3.141593 is 3.141593.

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