nearbyint
Da 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. |
Definido no cabeçalho <math.h>
|
||
float nearbyintf( float arg ); |
||
double nearbyint( double arg ); |
||
long double nearbyintl( long double arg ); |
||
Arredonda o
arg
argumento de ponto flutuante para um valor inteiro no formato de ponto flutuante, usando o modo de arredondamento atual.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.
Índice |
[editar] Parâmetros
arg | - | flutuando valor de ponto
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
O resultado inteiro do
arg
arredondamentoOriginal:
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
A única diferença entre nearbyint e rint é que rint pode aumentar o FE_INEXACT exceção de ponto flutuante, sem nunca nearbyint levanta-lo.
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] Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar] Veja também
(C99) (C99) (C99) |
número inteiro mais próximo usando o modo de arredondamento atual com exceção se o resultado é 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. (função) |
(C99) (C99) (C99) |
número inteiro mais próximo de arredondamento, de zero em casos meio 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. (função) |
(C99) (C99) |
obtém ou define direção arredondamento 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. (função) |
C++ documentation for nearbyint
|