Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Calculates the absolute value of a long integer.
long labs(
long n
);
Parameters
- 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 |
|---|---|
labs |
<stdlib.h> and <math.h> |
For additional compatibility information, see Compatibility in the Introduction.
Libraries
All versions of the C run-time libraries.
Example
See the example for abs.