Translations of this page?:

labs

Syntax:

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

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

You can also use abs() instead of labs() in C++, as it contains an overloaded version for it.

Related Topics: abs, fabs

 
• • • IndexRecent changesRSScc