[#BloombergLP-bslalg-NumericFormatterUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::NumericFormatterUtil :relfileprefix: ../../ :mrdocs: Namespace `struct` for free functions supporting `to_chars`. == Synopsis Declared in `<bslalg_numericformatterutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NumericFormatterUtil; ---- == Types [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslalg/NumericFormatterUtil/PrecisionMaxBufferLength-03.adoc[`PrecisionMaxBufferLength`] | 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. 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`. | xref:BloombergLP/bslalg/NumericFormatterUtil/ToCharsMaxLength.adoc[`ToCharsMaxLength`] | Minimum buffer size for `toChars` conversion of `TYPE`. |=== == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslalg/NumericFormatterUtil/Format.adoc[`Format`] | This enumeration lists the supported, explicitly specified 'toChars' formatting options for floating point values, according to ISO C++17. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslalg/NumericFormatterUtil/toChars-060.adoc[`toChars`] | `toChars` overloads |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#