Function abs

Top 

Declaration:

long abs(long x);

Description

The abs function calculates the absolute value of the integer argument val.

Returned value

The abs function returns the absolute value of the integer argument val.