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

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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ITERATOR&gt;
static
t&lowbar;ITERATOR
writeZeroPaddedDigits(
    t&lowbar;ITERATOR out,
    int value,
    int numDigits = 2);
----


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