labs

Name

labs -- returns the absolute value

Synopsis

#include <stdlib.h>

long labs(long l);

Description

This function accepts a signed long value and returns the absolute value, as a signed long value which is positive.

See Also

abs, stdlib

Examples

Getting the absolute value