Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
labs
div
eof
Collapse the table of content
Expand the table of content

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.

Community Additions

ADD
Show:
© 2015 Microsoft