Export (0) Print
Expand All
div
eof
Expand Minimize
This topic has not yet been rated - Rate this topic

labs

Calculates the absolute value of a long integer.

long labs(
   long n 
);
n

Long-integer value.

The labs function returns the absolute value of its argument. There is no error return.

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.

See the example for abs.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.