Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Plan9 4th Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(2)

frexp(2)

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)

Plan 9  —  December 11, 1999

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026