std::numeri...s_quiet_NaN(3)
π NAME π
okay so this page is std::numeric_limits::has_quiet_NaN - std::numeric_limits::has_quiet_NaN, yes literally twice, thatβs the original NAME line and weβre keeping the whole vibe. Itβs from the C++ Standard Libary manual, section 3, and itβs here to tell you whether a type can represent a quiet NaN. π
β¨ Synopsis β¨
static const bool has_quiet_NaN; (until C++11)
static constexpr bool has_quiet_NaN; (since C++11)
The value of std::numeric_limits<T>::has_quiet_NaN is true for all types T capable of representing the special value "Quiet Not-A-Number". This constant is meaningful for all floating-point types and is guaranteed to be true if std::numeric_limits<T>::is_iec559 == true. no cap, thatβs the whole rule π¦
π Standard specializations π
hereβs the full value check for std::numeric_limits<T>::has_quiet_NaN β every single row, bestie, no skips:
/* non-specialized */βfalseboolβfalsecharβfalsesigned charβfalseunsigned charβfalsewchar_tβfalsechar8_t(since C++20) βfalsechar16_t(since C++11) βfalsechar32_t(since C++11) βfalseshortβfalseunsigned shortβfalseintβfalseunsigned intβfalselongβfalseunsigned longβfalselong long(since C++11) βfalseunsigned long long(since C++11) βfalsefloatβusually truedoubleβusually truelong doubleβusually true
π¦ See also π¦
quiet_NaNβ returns a quiet NaN value of the given floating-point type;[static](public static member function)has_infinityβ identifies floating-point types that can represent the special value"positive infinity";[static](public static member constant)has_signaling_NaNβ identifies floating-point types that can represent the special value"signaling not-a-number"(NaN);[static](public static member constant)
xoxo, bestie π this page came from cppreference.com, version/date 2024.06.10. go check those NaNs, ily! π§β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms