plan9 man page for floor

Query: floor

OS: plan9

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

FLOOR(2)							System Calls Manual							  FLOOR(2)

NAME
fabs, fmod, floor, ceil - absolute value, remainder, floor, ceiling functions
SYNOPSIS
#include <u.h> #include <libc.h> double floor(double x) double ceil(double x) double fabs(double x) double fmod(double x, double y)
DESCRIPTION
Fabs returns the absolute value |x|. Floor returns the largest integer not greater than x. Ceil returns the smallest integer not less than x. Fmod returns x if y is zero, otherwise the number f with the same sign as x, such that x = iy + f for some integer i, and |f| < |y|.
SOURCE
/sys/src/libc/port
SEE ALSO
abs(2), frexp(2) FLOOR(2)
Related Man Pages
floorf(3) - redhat
fabs(3m) - ultrix
fmod(3m) - ultrix
ftrunc(3m) - ultrix
rint(3m) - ultrix
Similar Topics in the Unix Linux Community
FLOOR Func
Evacuate the Dancefloor
CEILING and FLOOR functions
Round floor behavior