std::numeric_limits<T>::max_digits10
From cppreference.com
< cpp | types | numeric limits
| static constexpr int max_digits10 |
(since C++11) | |
The value of std::numeric_limits<T>::max_digits10 is the number of base-10 digits that are necessary to uniquely represent all distinct values of the type T, such as necessary for serialization/deserialization to text. This constant is meaningful for all floating-point types.
Contents |