std::float_denorm_style(3)

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

πŸ’– NAME πŸ’–

okay so bestie, welcome to std::float_denorm_style(3) β€” a page from the C++ Standard Libary manual all about the enum that says whether floating-point types support subnormal values. it’s giving tiny-but-iconic enum energy ✨


✨ Synopsis ✨

this whole vibe is defined in the <limits> header, no cap:

Defined in header <limits>
enum float_denorm_style {

    denorm_indeterminate = -1,
    denorm_absent        = 0,   (deprecated in C++23)
    denorm_present       = 1

};

so the enumeration constants of type std::float_denorm_style indicate support of subnormal values by floating-point types. literally that’s the whole point πŸ’…

πŸŽ€ Enumeration constants πŸŽ€

  • std::denorm_indeterminate β€” support of subnormal values cannot be determined πŸ™ˆ
  • std::denorm_absent β€” the type does not support subnormal values. also bestie, denorm_absent = 0 is deprecated in C++23, so keep that on your radar 🚨
  • std::denorm_present β€” the type allows subnormal values πŸ¦‹

🫢 See also 🫢

  • has_denorm β€” identifies the denormalization style used by the floating-point type. it’s tagged [static] (public static member constant) πŸ‘‘

that’s the whole page, bestie πŸ’– this one came from cppreference.com, and its version/date stamp is 2024.06.10 β€” slay, now go flex your floating-point denorm-style knowledge ✨

πŸ“¦ where this page comes from