File:  [CSRG BSD Unix] / 43BSDTahoe / man / man3 / abs.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

.\"	@(#)abs.3	6.1 (Berkeley) 5/15/85
.\"
.TH ABS 3 "May 15, 1985"
.AT 3
.SH NAME
abs \- integer absolute value
.SH SYNOPSIS
.nf
.B abs(i)
.B int i;
.fi
.SH DESCRIPTION
.I Abs
returns the absolute value of its integer operand.
.SH SEE ALSO
floor(3M) for
.I fabs
.SH BUGS
Applying the \fIabs\fP function to the most negative integer generates a
result which is the most negative integer.  That is, 
.IP "abs(0x80000000)"
.LP
returns 0x80000000 as a result.

unix.superglobalmegacorp.com

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