Files
oldlinux-files/Minix/2.0.0/wwwman/man3/abs.3.html
2024-02-19 00:21:39 -05:00

72 lines
904 B
HTML

<HTML>
<HEAD>
<TITLE>abs(3)</TITLE>
</HEAD>
<BODY>
<H1>abs(3)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
abs - integer absolute value
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>#include</STRONG> <STRONG>&lt;stdlib.h&gt;</STRONG>
<STRONG>int</STRONG> <STRONG>abs(int</STRONG> <EM>i</EM><STRONG>)</STRONG>
</PRE>
<H2>DESCRIPTION</H2><PRE>
<STRONG>Abs</STRONG> returns the absolute value of its integer operand.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man3/floor.3.html">floor(3)</A></STRONG>.
</PRE>
<H2>BUGS</H2><PRE>
Applying the <EM>abs</EM> function to the most negative integer generates a result
which is the most negative integer. That is, abs(0x80000000) returns
0x80000000 as a result on a machine with 32-bit ints. Using the result
in unsigned computations is sound however.
</PRE>
</BODY>
</HTML>