[#BloombergLP-bslalg-NumericFormatterUtil-PrecisionMaxBufferLength-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/NumericFormatterUtil.adoc[NumericFormatterUtil]::PrecisionMaxBufferLength
:relfileprefix: ../../../
:mrdocs:

Metafunction that provides access to `float` and `double` variation of the `value` class method that returns the maximum required buffer size to for the textual representation (`toChars`) for a specified format and precision value&period; The metafunction provides a single class method `value` with the signature `size&lowbar;t value(Format format, int precision)` that returns the maximum required buffer size for the specified `format` and `precision`&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;numericformatterutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;FLOATING&gt;
struct PrecisionMaxBufferLength;
----

== Specializations

[cols="1"]
|===
| Name
| xref:BloombergLP/bslalg/NumericFormatterUtil/PrecisionMaxBufferLength-0d.adoc[`PrecisionMaxBufferLength&lt;double&gt;`] 
| xref:BloombergLP/bslalg/NumericFormatterUtil/PrecisionMaxBufferLength-04.adoc[`PrecisionMaxBufferLength&lt;float&gt;`] 
|===



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