|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Calculates the absolute value of a long integer.
long labs( long n );
- Long-integer value.
The labs function returns the absolute value of its argument. There is no error return.
|labs||<stdlib.h> and <math.h>||ANSI, Win 98, Win Me, Win NT, Win 2000, Win XP|
For additional compatibility information, see Compatibility in the Introduction.
All versions of the C run-time libraries.
See the example for abs.