Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(3C)

FLOOR(3M)  —  Silicon Graphics

NAME

floor, _lfloor, ceil, _lceil, fmod, _lfmod, fabs, _lfabs − floor, ceiling, remainder, absolute value functions

SYNOPSIS

#include <math.h>

float floor (x)
float x;

long float _lfloor (x)
long float x;

float ceil (x)
float x;

long float _lceil (x)
long float x;

float fmod (x, y)
float x, y;

long float _lfmod (x, y)
long float x, y;

float fabs (x)
float x;

long float _lfabs (x)
long float x;

DESCRIPTION

Floor, _lfloor returns the largest integer (as a floating point number in the indicated precision) not greater than x.

Ceil, _lceil returns the smallest integer not less than x.

Fmod, _lfmod returns the number f with the same sign as x, such that x = iy + f for some integer i, and |f| < |y|. Fmod will thus return x if y is zero. 

Fabs, _lfabs returns |x|.

SEE ALSO

abs(3C). 

Version 2.3  —  July 04, 1985

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