Поделиться через


numeric_limits::tinyness_before

Проверяет, является ли тип может определить, что значение слишком мало для представления как нормализованное значение до округление его.

static const bool tinyness_before = false;

Возвращаемое значение

true, если тип может обнаружить малюсенькие значения, находящиеся перед округлением; false если оно не может.

Заметки

Печатает, может обнаружить tinyness был включен в качестве параметра с IEC представления 559 плавающих запятых и его реализация может повлиять на некоторых результатов.

Пример

// 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;
}
  

Требования

заголовок: <limits>

std пространство имен:

См. также

Ссылки

strstreambuf Class