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)