c:math:labs

C++ Reference

labs

Syntax:

    #include <cstdlib>
    long labs( long num );

The function labs() returns the absolute value of num.

Related Topics: abs, fabs