Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(3)

intro(3m)

floor(3m)

NAME

fabs, floor, ceil, rint − absolute value, floor, ceiling, and round-to-nearest functions

SYNTAX

#include <math.h>

double floor(x)
double x;

double ceil(x)
double x;

double fabs(x)
double x;

double rint(x)
double x;

DESCRIPTION

The fabs routine returns the absolute value |x|.

The floor routine returns the largest integer no greater than x.

The ceil routine returns the smallest integer no less than x.

The rint routine returns the integer (represented as a double precision number) nearest x in the direction of the prevailing rounding mode.

SEE ALSO

abs(3), intro(3m)

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