numeric_limits::tinyness_before
Ověřuje, zda typ, můžete určit, že hodnota je příliš malé představovat jako normalizovanou hodnotu před zaokrouhlením ji.
static const bool tinyness_before = false;
Vrácená hodnota
truePokud zjistí typ velmi malé hodnoty před zaokrouhlením; false Pokud ne.
Poznámky
Typy, které lze zjistit tinyness byly zahrnuty i s reprezentace s plovoucí desetinnou čárkou IEC 559 a jeho provedení může ovlivnit některé výsledky.
Příklad
// numeric_limits_tinyness_before.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "Whether float types can detect tinyness before rounding: "
<< numeric_limits<float>::tinyness_before
<< endl;
cout << "Whether double types can detect tinyness before rounding: "
<< numeric_limits<double>::tinyness_before
<< endl;
cout << "Whether long int types can detect tinyness before rounding: "
<< numeric_limits<long int>::tinyness_before
<< endl;
cout << "Whether unsigned char types can detect tinyness before rounding: "
<< numeric_limits<unsigned char>::tinyness_before
<< endl;
}
Požadavky
Záhlaví:<omezení>
Obor názvů: std