labs
Calculates the absolute value of a long integer.
long labs(
long n
);
Parámetros
- n
Long-integer value.
Valor devuelto
The labs function returns the absolute value of its argument. There is no error return.
Requisitos
Routine |
Required header |
---|---|
labs |
<stdlib.h> and <math.h> |
For additional compatibility information, see Compatibility in the Introduction.
Libraries
All versions of the C run-time libraries.
Ejemplo
See the example for abs.