.TH FLOOR 3M .CT 2 math .SH NAME fabs, fmod, floor, ceil \(mi absolute value, remainder, floor, ceiling functions .SH SYNOPSIS .nf .B #include .PP .B double floor(x) .B double x; .PP .B double ceil(x) .B double x; .PP .B double fabs(x) .B double x; .PP .B double fmod(x,y) .B double x, y; .nf .SH DESCRIPTION .I Fabs returns the absolute value .RI | \|x\| |. .PP .I Floor returns the largest integer not greater than .IR x . .PP .I Ceil returns the smallest integer not less than .IR x . .PP .I Fmod returns .I x if .I y is zero, otherwise the number .I f with the same sign as .IR x , such that .I "x = iy + f" for some integer .IR i , and .RI | \|f\| | < .RI | \|x\| |. .SH SEE ALSO .IR arith (3), .IR frexp (3)