Espaços nominais
Variantes
Acções

rint, lrint, llrint

Da cppreference.com
< c‎ | numeric‎ | math

 
 
 
Funções matemáticas comuns
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operações básicas
Original:
Basic operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)(C99)(C99)
Funções exponenciais
Original:
Exponential functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C99)
(C99)
(C99)
(C99)
Funções de poder
Original:
Power functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C99)
(C99)
Funções trigonométricas e hiperbólicas
Original:
Trigonometric and hyperbolic functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C99)
(C99)
(C99)
Erro e funções gamma
Original:
Error and gamma functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C99)
(C99)
(C99)
(C99)
Número inteiro mais próximo de operações de ponto flutuante
Original:
Nearest integer floating point operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C99)(C99)(C99)
(C99)
rintlrintllrint
(C99)(C99)(C99)
Flutuando funções de manipulação de pontos
Original:
Floating point manipulation functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C99)(C99)
(C99)
(C99)
Classificação
Original:
Classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C99)
(C99)
(C99)
Constantes de macros
Original:
Macro constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Definido no cabeçalho <math.h>
int rintf( float arg );
int rint( double arg );
int rintl( long double arg );
long lrintf( float arg );
long lrint( double arg );
long lrintl( long double arg );
long long llrintf( float arg );
long long llrint( double arg );
long long llrintl( 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. Se o resultado difere do arg (isto é, não foi arg um valor inteiro já), o FE_INEXACT exceção de ponto flutuante é levantada.
Original:
Rounds the floating-point argument arg to an integer value in floating-point format, using the current rounding mode. If the result differs from arg (i.e., arg was not an integer value already), the floating-point exception FE_INEXACT is raised.
The text has been machine-translated via Google Translate.
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 arredondamento
Original:
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.

[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.

[editar] Exemplo

[editar] Veja também

número inteiro mais próximo utilizando o modo de arredondamento correntes
Original:
nearest integer using 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.

(função) [edit]
(C99)
número inteiro mais próximo não maior em magnitude do que o 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.

(função) [edit]