std::numeri...::is_iec559(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME πŸ’–

Okay so this is the std::numeri...::is_iec559(3) page from the C++ Standard Libary manual, bestie. The NAME is literally std::numeric_limits::is_iec559 - std::numeric_limits::is_iec559. Yes, both sides. Iconic. ✨


🌸 Synopsis 🌸

First up, the signature vibe:

static const bool is_iec559;      (until C++11)
static constexpr bool is_iec559;  (since C++11)

The value of std::numeric_limits<T>::is_iec559 is true for all floating-point types T which fulfill the requirements of IEC 559 (IEEE 754) standard. If std::numeric_limits<T>::is_iec559 is true, then std::numeric_limits<T>::has_infinity, std::numeric_limits<T>::has_quiet_NaN, and std::numeric_limits<T>::has_signaling_NaN are also true. No cap. πŸ’―


πŸ‘‘ Standard specializations πŸ‘‘

Here's the whole squad: for each T, the value of std::numeric_limits<T>::is_iec559 is...

  • /* non-specialized */ β€” false
  • bool β€” false
  • char β€” false
  • signed char β€” false
  • unsigned char β€” false
  • wchar_t β€” false
  • char8_t (since C++20) β€” false
  • char16_t (since C++11) β€” false
  • char32_t (since C++11) β€” false
  • short β€” false
  • unsigned short β€” false
  • int β€” false
  • unsigned int β€” false
  • long β€” false
  • unsigned long β€” false
  • long long (since C++11) β€” false
  • unsigned long long (since C++11) β€” false
  • float β€” usually true
  • double β€” usually true
  • long double β€” usually true

πŸ” See also πŸ”

  • has_infinity β€” identifies floating-point types that can represent the special [static] value "positive infinity" (public static member constant).
  • has_quiet_NaN β€” identifies floating-point types that can represent the special [static] value "quiet not-a-number" (NaN) (public static member constant).
  • has_signaling_NaN β€” identifies floating-point types that can represent the special [static] value "signaling not-a-number" (NaN) (public static member constant).

That's the whole page, bestie. Source/version: http://cppreference.com; date: 2024.06.10; page: std::numeri...::is_iec559(3). Go forth and vibe check your floating-point types! πŸ’–πŸ¦‹

πŸ“¦ where this page comes from