projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
From Prof. Kahan
[unix-history]
/
usr
/
src
/
old
/
libm
/
man
/
floor.3
.\" @(#)floor.3 6.2 (Berkeley) %G%
.\"
.TH FLOOR 3M ""
.AT 3
.SH NAME
fabs, floor, ceil \- absolute value, 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;
.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 .
.SH SEE ALSO
abs(3)