std::numeric_limits::radix(3)
π
std::numeric_limits::radix π
okay so this is the std::numeric_limits::radix(3) page from the C++ Standard Libary manual, and we are absolutely getting into it. π«Ά
πΈ NAME πΈ
std::numeric_limits::radix β literally std::numeric_limits::radix, no notes π
π¦ Synopsis π¦
the synopsis tea is:
static const int radix; (until C++11)
static constexpr int radix; (since C++11)
the value of std::numeric_limits<T>::radix is the base of the number system used in the representation of the type. it is 2 for all binary numeric types, but it may be, for example, 10 for IEEE 754 decimal floating-point types or for third-party binary-coded decimal integers. this constant is meaningful for all specializations. periodt. β¨
π Standard specializations π
hereβs the T β value of std::numeric_limits<T>::radix mapping, every single row, no skips:
/* non-specialized */β0boolβ2charβ2signed charβ2unsigned charβ2wchar_tβ2char8_t(since C++20) β2char16_t(since C++11) β2char32_t(since C++11) β2shortβ2unsigned shortβ2intβ2unsigned intβ2longβ2unsigned longβ2long long(since C++11) β2unsigned long long(since C++11) β2floatβFLT_RADIXdoubleβFLT_RADIXlong doubleβFLT_RADIX
π See also π
digitsβ number of radix digits that can be represented without change.[static](public static member constant)min_exponentβ one more than the smallest negative power of the radix that is a valid normalized floating-point value.[static](public static member constant)max_exponentβ one more than the largest integer power of the radix that is a valid finite floating-point value.[static](public static member constant)
source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::numeric_limits::radix(3) β bye bestie, go be iconic with your radix knowledge πππ
π¦ 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