std::round, std::lround, std::llround
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>| definiert in Header <cmath>
|
||
float round( float arg ); |
(seit C++11) | |
double round( double arg ); |
(seit C++11) | |
long double round( long double arg ); |
(seit C++11) | |
double round( Integral arg ); |
(seit C++11) | |
long lround( float arg ); |
(seit C++11) | |
long lround( double arg ); |
(seit C++11) | |
long lround( long double arg ); |
(seit C++11) | |
long lround( Integral arg ); |
(seit C++11) | |
long long llround( float arg ); |
(seit C++11) | |
long long llround( double arg ); |
(seit C++11) | |
long long llround( long double arg ); |
(seit C++11) | |
long long llround( Integral arg ); |
(seit C++11) | |
Berechnet nächste ganze Zahl zu
arg. Nummer wird von Null weg in halbwegs Fällen abgerundet Original:
Computes nearest integer to
arg. Number is rounded away from zero in halfway cases 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
| arg | - | Floating-Point-Wert
Original: floating point 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
Nächste ganze Zahl zu
arg .Original:
Nearest integer to
arg.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.
[[Image:
Rückgabewert
|200x200px]]Original:
{{{2}}}
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.
Argument
