labs

Calculates the absolute value.

long labs (long n);

Required Header
<stdlib.h>

Return Value

This function returns the absolute value of a long integer.

Parameters

n

  The value to be converted

Remarks

The labs function returns the absolute value of n.

Standard Library

See Also   fabs, abs