Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ floor(3m) — Ultrix/UWS 4.2 VAX

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(3)

intro(3m)

floor(3m)  —  VAX

Name

fabs, floor, ceil, fmod, rint − absolute value, floor, ceiling, floating point remainder, 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 fmod (x, y)
double x, y;

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 fmod routine returns the floating point remainder of the division of x by y: zero if y is zero or if x/y would overflow; otherwise the number f with the same sign as x, such that x = iy + f for some integer i, and |f| < |y|.

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