Espaços nominais
Variantes
Acções

std::round, std::lround, std::llround

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

 
 
Biblioteca numéricos
Funções matemáticas comuns
De ponto flutuante ambiente
Números complexos
Matrizes numéricas
Pseudo-aleatório de geração de números
Tempo de compilação aritmética racional (C++11)
Genéricos operações numéricas
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
 
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.
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
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.
(C++11)
(C++11)
(C++11)
(C++11)
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.
(C++11)
(C++11)
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.
(C++11)
(C++11)
(C++11)
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.
(C++11)
(C++11)
(C++11)
(C++11)
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.
roundlroundllround
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
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.
(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)
Classificação / Comparação
Original:
Classification/Comparison
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
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.
(C++11)(C++11)(C++11)(C++11)(C++11)
 
Definido no cabeçalho <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 número inteiro mais próximo para arg. Número é arredondado de zero em casos meio
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.

[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

Número inteiro mais próximo para 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.
[[Image:
Valor de retorno
Original:
{{{2}}}
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
|200x200px]]
Argument

[editar] Veja também

número inteiro mais próximo não maior do que o valor especificado
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.

(função) [edit]
número inteiro mais próximo, pelo menos, o 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.

(função) [edit]
(C++11)
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]