std::numeric_limits::has_denorm_loss
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. |
<metanoindex/>
<tbody> </tbody> static const bool has_denorm_loss |
(até C++11) | |
static constexpr bool has_denorm_loss |
(desde C++11) | |
O valor da
std::numeric_limits<T>::has_denorm_loss é true para todos os tipos de ponto flutuante T capaz de distinguir perda de precisão devido a desnormalização de outras causas de resultado inexata.Original:
The value of
std::numeric_limits<T>::has_denorm_loss is true for all floating-point types T capable of distinguishing loss of precision due to denormalization from other causes of inexact result.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.
Especializações padrão
T
|
valor de
std::numeric_limits<T>::has_denorm_loss Original: value of std::numeric_limits<T>::has_denorm_loss The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| /* non-specialized */ | false
|
bool
|
false
|
char
|
false
|
signed char
|
false
|
unsigned char
|
false
|
wchar_t
|
false
|
char16_t
|
false
|
char32_t
|
false
|
short
|
false
|
unsigned short
|
false
|
int
|
false
|
unsigned int
|
false
|
long
|
false
|
unsigned long
|
false
|
long long
|
false
|
unsigned long long
|
false
|
float
|
definida pela implementação
Original: implementation-defined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
double
|
definida pela implementação
Original: implementation-defined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
long double
|
definida pela implementação
Original: implementation-defined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Notas
Compatível com o padrão IEE 754 implementações de ponto flutuante pode detectar o estouro de ponto flutuante em três momentos predefinidos:
Original:
Standard-compliant IEE 754 floating-point implementations may detect the floating-point underflow at three predefined moments:
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.
1)
depois de computação de um resultado com valor absoluto menor do que
std::numeric_limits<T>::min(), essa implementação detecta tinyness antes de arredondamentos.Original:
after computation of a result with absolute value smaller than
std::numeric_limits<T>::min(), such implementation detects tinyness before rounding.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.
2)
após o arredondamento do resultado para bits
std::numeric_limits<T>::digits, se o resultado é pequena, essa aplicação detecta tinyness após o arredondamento.Original:
after rounding of the result to
std::numeric_limits<T>::digits bits, if the result is tiny, such implementation detects tinyness after rounding.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.
3)
se a conversão do resultado arredondado para minúscula forma subnormal resultou na perda de precisão, tal implementação detecta perda denorm.
Original:
if the conversion of the rounded tiny result to subnormal form resulted in the loss of precision, such implementation detects denorm loss.
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.
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |
Veja também
[estática] |
identifica tipos de ponto flutuante que detectam tinyness antes de arredondamentos Original: identifies floating-point types that detect tinyness before rounding The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (membro estático público constante) |
[estática] |
identifica o estilo desnormalização usado pelo tipo de ponto flutuante Original: identifies the denormalization style used by the floating-point type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (membro estático público constante) |