numeric_limits::quiet_NaN
Bir sessiz temsilini sayı değil (nan) türünü döndürür.
static Type quiet_NaN( ) throw( );
Dönüş Değeri
Sessiz nan türünün gösterimi.
Notlar
Dönüş değeri anlamlı yalnızca has_quiet_NaN olan doğru.
Örnek
// numeric_limits_quiet_nan.cpp
// compile with: /EHsc
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << "The quiet NaN for type float is: "
<< numeric_limits<float>::quiet_NaN( )
<< endl;
cout << "The quiet NaN for type int is: "
<< numeric_limits<int>::quiet_NaN( )
<< endl;
cout << "The quiet NaN for type long double is: "
<< numeric_limits<long double>::quiet_NaN( )
<< endl;
}
Gereksinimler
Başlık: <limits>
Namespace: std