Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(3C)

FLOOR(3M)  —  UNIX 3.0

NAME

floor, fabs, ceil, fmod − absolute value, floor, ceiling, remainder functions

SYNOPSIS

#include <math.h>

double floor (x)
double x;

double ceil (x)
double x;

double fmod (x, y)
double x, y;

double fabs (x)
double x;

DESCRIPTION

Fabs returns |x|.

Floor returns the largest integer (as a double precision number) not greater than x.

Ceil returns the smallest integer not less than x.

Fmod returns the number f such that x = iy + f, for some integer i, and

0 ≤ f<y.

SEE ALSO

abs(3C). 

May 16, 1980

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