std::numeri...::has_denorm(3)
π NAME π
okay so bestie, this page is for std::numeric_limits::has_denorm β and the NAME line literally says std::numeric_limits::has_denorm β std::numeric_limits::has_denorm. yes, the same iconic name twice, no notes. π
It lives in the C++ Standard Libary manual, and the page title is that beautifully truncated std::numeri...::has_denorm(3).
β¨ Synopsis β¨
the signature is literally this:
static const std::float_denorm_style has_denorm; (until C++11)
static constexpr std::float_denorm_style has_denorm; (since C++11)
(deprecated in
C++23)
β οΈ heads up bestie: it is deprecated in C++23. not me telling you to ignore it, just keeping the vibe check honest. π
The value of std::numeric_limits<T>::has_denorm identifies the floating-point types that support subnormal values. that's the whole main-character job, periodt. β¨
π Standard specializations π
here's the lineup, bestie β T on the left, value of std::numeric_limits<T>::has_denorm on the right:
/* non-specialized */βstd::denorm_absentboolβstd::denorm_absentcharβstd::denorm_absentsigned charβstd::denorm_absentunsigned charβstd::denorm_absentwchar_tβstd::denorm_absentchar8_t(since C++20) βstd::denorm_absentchar16_t(since C++11) βstd::denorm_absentchar32_t(since C++11) βstd::denorm_absentshortβstd::denorm_absentunsigned shortβstd::denorm_absentintβstd::denorm_absentunsigned intβstd::denorm_absentlongβstd::denorm_absentunsigned longβstd::denorm_absentlong long(since C++11) βstd::denorm_absentunsigned long long(since C++11) βstd::denorm_absentfloatβ usuallystd::denorm_presentdoubleβ usuallystd::denorm_presentlong doubleβ usuallystd::denorm_present
the integer-ish and character-ish girlies are all giving std::denorm_absent, while float, double, and long double are usually std::denorm_present. lowkey iconic. πΈ
π See also π
denorm_min[static] β returns the smallest positive subnormal value of the given floating-point type (public static member function). π«Άfloat_denorm_styleβ indicates floating-point denormalization modes (enum). π¦
kisses bestie! this cute little page came from http://cppreference.com, version 2024.06.10, and the footer title is std::numeri...::has_denorm(3) β periodt. ππ
π
π¦ 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