[#BloombergLP-bdlt-FormatUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::FormatUtil
:relfileprefix: ../../
:mrdocs:

This `class` serves as a namespace for some static functions that are useful in creating specializations of `bsl&colon;&colon;formatter` to support `bsl&colon;&colon;format`&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;formatutil&period;h&gt;`

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

== Type Aliases

[cols="1"]
|===
| Name
| xref:BloombergLP/bdlt/FormatUtil/StringView.adoc[`StringView`] 
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/FormatUtil/writeSecondFraction.adoc[`writeSecondFraction`] 
| Write the fraction of a second from the timeCache to `d&lowbar;out`, where the `precision` is the number of digits of precision wanted&period; Use `decimalChar` (expected to be &apos;&period;&apos; or &apos;,&apos;) as a decimal point, and if `precision &equals;&equals; 0` output nothing&period; If `6 &lt; precision`, write &apos;0&apos; characters following the first 6 digits&period; The behavior is undefined unless `0 &lt;&equals; millisecond &lt; 1000`, `0 &lt;&equals; microsecond &lt; 1000`, and `0 &lt;&equals; precision`&period;
| xref:BloombergLP/bdlt/FormatUtil/writeZeroPaddedDigits.adoc[`writeZeroPaddedDigits`] 
| Write the specified `value` in decimal to the specified `out`&period; Always write the specified `numDigits` digits, &apos;0&apos;&hyphen;padding to the left if necessary&period; Return the iterator after output is done&period; The behavior is undefined unless `2 &lt;&equals; numDigits &lt;&equals; 6` and `0 &lt;&equals; value &lt; pow(10, numDigits)`&period;
|===



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