source: trunk/minix/man/man3/abs.3@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 562 bytes
Line 
1.\" @(#)abs.3 6.1 (Berkeley) 5/15/85
2.\"
3.TH ABS 3 "May 15, 1985"
4.AT 3
5.SH NAME
6abs \- integer absolute value
7.SH SYNOPSIS
8.nf
9.ft B
10#include <stdlib.h>
11
12int abs(int \fIi\fP)
13.ft R
14.fi
15.SH DESCRIPTION
16.B Abs
17returns the absolute value of its integer operand.
18.SH SEE ALSO
19.BR floor (3).
20.SH BUGS
21Applying the \fIabs\fP function to the most negative integer generates a
22result which is the most negative integer. That is, abs(0x80000000)
23returns 0x80000000 as a result on a machine with 32-bit ints. Using the
24result in unsigned computations is sound however.
Note: See TracBrowser for help on using the repository browser.