Numeric Functions
All numeric functions return a numeric result and only accept numeric arguments.
The $FABS Function
Absolute value Returns: Numeric |
The $FABS function returns the absolute value of the argument n.
The $FCEIL Function
Round up to whole number Returns: Numeric |
The $FCEIL function returns the smallest whole number that is greater than or equal to n.
The $FFLOOR Function
Round down to whole number Returns: Numeric |
The $FFLOOR function returns the largest whole number that is less than or equal to n.
The $FFRAC Function
Fractional portion Returns: Numeric |
The $FFRAC function returns the fractional portion of the argument n.
The $FINT Function
Truncation to whole number Returns: Numeric |
The $FINT function returns the integer portion (i.e., whole number) of the argument n.
The $FMAX Function
Largest value Returns: Numeric |
The $FMAX function returns the argument having the largest value from the list of numeric arguments specified. At least two arguments should be specified.
The $FMIN Function
Smallest value Returns: Numeric |
The $FMIN function returns the argument having the smallest value from the list of numeric arguments specified. At least two arguments should be specified.
The $FMOD Function
Remainder Returns: Numeric |
The $FMOD function returns the remainder of the quotient n1/n2. $FMOD generates an error if n2 is zero.
The $FNINT Function
Nearest whole number Returns: Numeric |
The $FNINT function returns the nearest whole number of the argument as $FINT(n+.5*$FSIGN(n)).
The $FSIGN Function
Sign Returns: Numeric |
The $FSIGN function returns –1 if n is negative, 0 (zero) if n is zero and +1 if n is positive.