cpp/types/numeric limits/max digits10

The value of is the number of base-10 digits that are necessary to uniquely represent all distinct values of the type, such as necessary for serialization/deserialization to text. This constant is meaningful for all floating-point types.