[#BloombergLP-bslalg-NumericFormatterUtil-PrecisionMaxBufferLength-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/NumericFormatterUtil.adoc[NumericFormatterUtil]::PrecisionMaxBufferLength :relfileprefix: ../../../ :mrdocs: Metafunction for maximum `toChars` buffer size given format and precision. == Synopsis Declared in `<bslalg_numericformatterutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_FLOATING> struct PrecisionMaxBufferLength; ---- == Description Metafunction that provides access to `float` and `double` variation of the `value` class method that returns the maximum required buffer size for the textual representation (`toChars`) for a specified format and precision value. The metafunction provides a single class method `value` with the signature `size_t value(Format format, int precision)` that returns the maximum required buffer size for the specified `format` and `precision`. == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslalg/NumericFormatterUtil/PrecisionMaxBufferLength-0d.adoc[`PrecisionMaxBufferLength<double>`] | `PrecisionMaxBufferLength` specialization for `double`. | xref:BloombergLP/bslalg/NumericFormatterUtil/PrecisionMaxBufferLength-04.adoc[`PrecisionMaxBufferLength<float>`] | `PrecisionMaxBufferLength` specialization for `float`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#