std::round, std::lround, std::llround
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <cmath>
|
||
float round( float arg ); |
(dal C++11) | |
double round( double arg ); |
(dal C++11) | |
long double round( long double arg ); |
(dal C++11) | |
double round( Integral arg ); |
(dal C++11) | |
long lround( float arg ); |
(dal C++11) | |
long lround( double arg ); |
(dal C++11) | |
long lround( long double arg ); |
(dal C++11) | |
long lround( Integral arg ); |
(dal C++11) | |
long long llround( float arg ); |
(dal C++11) | |
long long llround( double arg ); |
(dal C++11) | |
long long llround( long double arg ); |
(dal C++11) | |
long long llround( Integral arg ); |
(dal C++11) | |
Calcola numero intero più vicino a
arg
. Numero viene arrotondato lontano da zero in caso a metà strada 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.
[modifica] Parametri
arg | - | valore in virgola mobile
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. |
[modifica] Valore di ritorno
Numero intero più vicino a
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:
Valore di ritorno
|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
[modifica] Vedi anche
intero più vicino non superiore al valore dato Original: nearest integer not greater than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
intero più vicino non inferiore al valore dato Original: nearest integer not less than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
(C++11) |
intera più vicina non superiore in grandezza rispetto al valore dato Original: nearest integer not greater in magnitude than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |