File:  [Research Unix] / researchv10dc / man / adm / man3 / floor.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH FLOOR 3M
.CT 2 math
.SH NAME
fabs, fmod, floor, ceil \(mi absolute value, remainder, floor, ceiling functions
.SH SYNOPSIS
.nf
.B #include <math.h>
.PP
.B double floor(x)
.B double x;
.PP
.B double ceil(x)
.B double x;
.PP
.B double fabs(x)
.B double x;
.PP
.B double fmod(x,y)
.B double x, y;
.nf
.SH DESCRIPTION
.I Fabs
returns the absolute value
.RI | \|x\| |.
.PP
.I Floor
returns the
largest integer
not greater than
.IR x .
.PP
.I Ceil
returns the
smallest integer
not less than
.IR x .
.PP
.I Fmod
returns
.I x
if
.I y
is zero, otherwise the number
.I f
with the same sign as
.IR x ,
such that
.I "x = iy + f"
for some integer
.IR i ,
and
.RI | \|f\| |
<
.RI | \|x\| |.
.SH SEE ALSO
.IR arith (3),
.IR frexp (3)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.