nearbyint
De cppreference.com
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Definido en el archivo de encabezado <math.h>
|
||
float nearbyintf( float arg ); |
(desde C99) | |
double nearbyint( double arg ); |
(desde C99) | |
long double nearbyintl( long double arg ); |
(desde C99) | |
Redondea el argumento de coma flotante
arg
a un valor entero en formato de coma flotante, utilizando la modalidad de redondeo actual .Original:
Rounds the floating-point argument
arg
to an integer value in floating-point format, using the current rounding mode.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.
Contenido |
[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
El resultado entero de
arg
redondeoOriginal:
The integer result of rounding
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.
[editar] Notas
La única diferencia entre nearbyint y rint es que rint puede elevar el FE_INEXACT de punto flotante de excepción, mientras que nunca nearbyint plantea .
Original:
The only difference between nearbyint and rint is that rint may raise the FE_INEXACT floating-point exception, while nearbyint never raises it.
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] Ejemplo
Esta sección está incompleta Razón: sin ejemplo |
[editar] Ver también
(C99)(C99)(C99) |
entero más cercano usando el modo de redondeo actual con excepción si el resultado es diferente Original: nearest integer using current rounding mode with exception if the result differs The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
(C99)(C99)(C99) |
entero más próximo, redondeando lejos de cero en los casos de reinserción Original: nearest integer, rounding 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. (función) |
(C99)(C99) |
obtiene o establece la dirección redondeo Original: gets or sets rounding direction The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
Documentación de C++ para nearbyint
|