numeric_limits::denorm_min
En küçük sıfır döndürür değerini denormalized.
static Type denorm_min( ) throw( );
Dönüş Değeri
En küçük Normalleştirilmemiş deðer.
Notlar
long doubleaynı çift C++ derleyicisi için.
Aynı tür için en düşük değer işlevini verir olarak min , has_denorm eşit değildir denorm_present.
Örnek
// numeric_limits_denorm_min.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "The smallest nonzero denormalized value\n for float "
<< "objects is: " << numeric_limits<float>::denorm_min( )
<< endl;
cout << "The smallest nonzero denormalized value\n for double "
<< "objects is: " << numeric_limits<double>::denorm_min( )
<< endl;
cout << "The smallest nonzero denormalized value\n for long double "
<< "objects is: " << numeric_limits<long double>::denorm_min( )
<< endl;
// A smaller value will round to zero
cout << numeric_limits<float>::denorm_min( )/2 <<endl;
cout << numeric_limits<double>::denorm_min( )/2 <<endl;
cout << numeric_limits<long double>::denorm_min( )/2 <<endl;
}
Gereksinimler
Başlık: <limits>
Namespace: std