Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ floor(3m) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(3)

floor(3m)

NAME

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

SYNTAX

#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

The fabs function returns the absolute value of x, |x|. The floor returns the largest integer not greater than x. 

The ceil function returns the smallest integer not less than x. 

The fmod function 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|.

SEE ALSO

abs(3)

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