Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::numeric_limits<T>::radix

      From cppreference.com
      <cpp‎ |types‎ |numeric limits
       
       
      Utilities library
       
       
      std::numeric_limits
      Static constants
      numeric_limits::radix
      Static member functions
      Helper types
       
      staticconstint radix;
      (until C++11)
      staticconstexprint radix;
      (since C++11)

      The value ofstd::numeric_limits<T>::radix is the base of the number system used in the representation of the type. It is2 for all binary numeric types, but it may be, for example,10 for IEEE 754decimal floating-point types or for third-partybinary-coded decimal integers. This constant is meaningful for all specializations.

      [edit]Standard specializations

      T value ofstd::numeric_limits<T>::radix
      /* non-specialized */0
      bool2
      char2
      signedchar2
      unsignedchar2
      wchar_t2
      char8_t(since C++20)2
      char16_t(since C++11)2
      char32_t(since C++11)2
      short2
      unsignedshort2
      int2
      unsignedint2
      long2
      unsignedlong2
      longlong(since C++11)2
      unsignedlonglong(since C++11)2
      floatFLT_RADIX
      doubleFLT_RADIX
      longdoubleFLT_RADIX

      [edit]See also

      [static]
      number ofradix digits that can be represented without change
      (public static member constant)[edit]
      [static]
      one more than the smallest negative power of the radix that is a valid normalized floating-point value
      (public static member constant)[edit]
      [static]
      one more than the largest integer power of the radix that is a valid finite floating-point value
      (public static member constant)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/types/numeric_limits/radix&oldid=148449"

      [8]ページ先頭

      ©2009-2025 Movatter.jp