labs
Visual Studio .NET 2003
Calculates the absolute value of a long integer.
long labs( long n );
Parameter
- n
- Long-integer value.
Return Value
The labs function returns the absolute value of its argument. There is no error return.
Requirements
| Routine | Required header | Compatibility |
|---|---|---|
| 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.
Libraries
All versions of the C run-time libraries.
Example
See the example for abs.
See Also
Data Conversion Routines | Floating-Point Support | abs | _cabs | fabs | Run-Time Routines and .NET Framework Equivalents