FLOOR(3M) — MATHEMATICAL FUNCTIONS
NAME
floor, ceil, fabs, rint − absolute value, floor, ceiling and round-to-nearest functions
SYNOPSIS
#include <math.h>
double floor(x)
double x;
double ceil(x)
double x;
double fabs(x)
double x;
double rint(x)
double x;
DESCRIPTION
Fabs returns the absolute value | x |.
Floor returns the value of the greatest integer less than or equal to x.
Ceil returns the value of the least integer greater than or equal to x.
Rint returns the value of the integer nearest x in the direction of the prevailing rounding mode.
SEE ALSO
Sun Release 3.2 — Last change: 14 March 1986