Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(3)

FLOOR(3M)  —  MATHEMATICAL FUNCTIONS

NAME

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

SYNOPSIS

#include <math.h>

double floor(x)
double x;

double ceil(x)
double x;

double fabs(x)
double x;

double rint(x)
double x;

DESCRIPTION

Fabs returns the absolute value | x |. 

Floor returns the value of the greatest integer less than or equal to x.

Ceil returns the value of the least integer greater than or equal to x.

Rint returns the value of the integer nearest x in the direction of the prevailing rounding mode. 

SEE ALSO

abs(3)

Sun Release 3.2  —  Last change: 14 March 1986

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