Namespaces
Variants
Actions

std::numeric_limits<T>::max_digits10

From cppreference.com
 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
 
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

[