numeric_limits::has_denorm
Badania, czy typ zezwala nieznormalizowane wartości.
static const float_denorm_style has_denorm = denorm_absent;
Wartość zwracana
Wartość wyliczenia typu constfloat_denorm_style, wskazujące czy typ zezwala zdenormalizowane wartości.
Uwagi
Sklepy Państwa denorm_present dla typu zmiennoprzecinkowego, który ma nieznormalizowane wartości skutecznie o zmiennej liczbie bitów wykładnik.
Przykład
// numeric_limits_has_denorm.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "Whether float objects allow denormalized values: "
<< numeric_limits<float>::has_denorm
<< endl;
cout << "Whether double objects allow denormalized values: "
<< numeric_limits<double>::has_denorm
<< endl;
cout << "Whether long int objects allow denormalized values: "
<< numeric_limits<long int>::has_denorm
<< endl;
}
Wymagania
Nagłówek:<limity>
Przestrzeń nazw: std