numeric_limits::is_iec559
Testet, ob ein Typ an Standards IEC 559 entspricht.
static const bool is_iec559 = false;
Rückgabewert
true, wenn der Typ an die Standardeinstellungen IEC 559 entspricht; false wenn nicht.
Hinweise
Das IEC 559 ist einem internationalen Standard für die Darstellung von Gleitkommawerten und wird auch als IEEE 754 in den USA.
Beispiel
// numeric_limits_is_iec559.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "Whether float objects conform to iec559 standards: "
<< numeric_limits<float>::is_iec559
<< endl;
cout << "Whether double objects conform to iec559 standards: "
<< numeric_limits<double>::is_iec559
<< endl;
cout << "Whether int objects conform to iec559 standards: "
<< numeric_limits<int>::is_iec559
<< endl;
cout << "Whether unsigned char objects conform to iec559 standards: "
<< numeric_limits<unsigned char>::is_iec559
<< endl;
}
Anforderungen
Grenzen Header: <>
Namespace: std