labs [C++ Reference]
Keywords: c,math,labs
Date: 2009-03-20T11:29:37-0700

[[labs]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## 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

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •