std::round, std::lround, std::llround
De cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Defined in header <cmath>
|
||
float round( float arg ); |
(desde C++11) | |
double round( double arg ); |
(desde C++11) | |
long double round( long double arg ); |
(desde C++11) | |
double round( Integral arg ); |
(desde C++11) | |
long lround( float arg ); |
(desde C++11) | |
long lround( double arg ); |
(desde C++11) | |
long lround( long double arg ); |
(desde C++11) | |
long lround( Integral arg ); |
(desde C++11) | |
long long llround( float arg ); |
(desde C++11) | |
long long llround( double arg ); |
(desde C++11) | |
long long llround( long double arg ); |
(desde C++11) | |
long long llround( Integral arg ); |
(desde C++11) | |
Calcula entero más cercano a
arg
. El número se redondea alejándose de cero en los casos de reinserción 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.
[editar] Parámetros
arg | - | flotando valor en puntos
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. |
[editar] Valor de retorno
Entero más cercano 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:
Valor de retorno
|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
[editar] Ver también
entero más cercano no es mayor que el valor dado 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. (función) | |
más cercano entero no menor que el valor dado 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. (función) | |
(C++11) |
entero más cercano no es mayor en magnitud que el valor dado 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. (función) |