std::abs(int), std::labs, std::llabs, std::imaxabs
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>| definiert in Header <cstdlib>
|
||
int abs( int n ); |
||
long abs( long n ); |
||
long long abs( long long n ); |
(seit C++11) | |
long labs( long n ); |
||
long long llabs( long long n ); |
(seit C++11) | |
| definiert in Header <cinttypes>
|
||
std::intmax_t abs( std::intmax_t n ); |
(seit C++11) | |
std::intmax_t imaxabs( std::intmax_t n ); |
(seit C++11) | |
Berechnet den absoluten Wert einer ganzen Zahl .
Original:
Computes the absolute value of an integer number.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| n | - | Integerwert
Original: integer value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Rückgabewert
der absolute Wert der
n (d.h. |n|)Original:
the absolute value of
n (i.e. |n|)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
