[#bsl-MaxDecimalStringLengths]
= xref:bsl.adoc[bsl]::MaxDecimalStringLengths
:relfileprefix: ../
:mrdocs:

This `enum` give upper bounds on the maximum string lengths storing each scalar numerical type, and the starting value for `long double` that can get way too long for stack storage when printed&period; It is safe to use stack&hyphen;allocated buffers of these sizes for generating decimal representations of the corresponding type, including sign and terminating null character, using the default precision of 6 significant digits for floating point types&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum MaxDecimalStringLengths;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `e&lowbar;MAX&lowbar;SHORT&lowbar;STRLEN10` 
| Maximum decimal string length for a `short`, including sign and null&period;
| `e&lowbar;MAX&lowbar;INT&lowbar;STRLEN10` 
| Maximum decimal string length for an `int`, including sign and null&period;
| `e&lowbar;MAX&lowbar;INT64&lowbar;STRLEN10` 
| Maximum decimal string length for an `int`, including sign and null&period;
| `e&lowbar;MAX&lowbar;FLOAT&lowbar;STRLEN10` 
| Maximum string length for a `float` in base&hyphen;10, including sign and null terminator&period;
| `e&lowbar;MAX&lowbar;DOUBLE&lowbar;STRLEN10` 
| Maximum string length for a `float` in base&hyphen;10, including sign and null terminator&period;
| `e&lowbar;MAX&lowbar;LONGDOUBLE&lowbar;STRLEN10` 
| Maximum string length for a `float` in base&hyphen;10, including sign and null terminator&period;
| `e&lowbar;MAX&lowbar;SCALAR&lowbar;STRLEN10` 
| Maximum string length for a `float` in base&hyphen;10, including sign and null terminator&period;
| `e&lowbar;STARTING&lowbar;LONGDOUBLE&lowbar;STRLEN10` 
| Maximum string length for a `float` in base&hyphen;10, including sign and null terminator&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
