[#BloombergLP-bdlt-FormatUtil-writeZeroPaddedDigits] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/FormatUtil.adoc[FormatUtil]::writeZeroPaddedDigits :relfileprefix: ../../../ :mrdocs: Write zero‐padded decimal digits to `out`. == Synopsis Declared in `<bdlt_formatutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_ITERATOR> static t_ITERATOR writeZeroPaddedDigits( t_ITERATOR out, int value, int numDigits = 2); ---- == Description Write the specified `value` in decimal to the specified `out`. Always write the specified `numDigits` digits, '0'‐padding to the left if necessary. Return the iterator after output is done. The behavior is undefined unless `2 <= numDigits <= 6` and `0 <= value < pow(10, numDigits)`. == Return Value output iterator after writing == Parameters [cols="1,4"] |=== | Name| Description | *out* | output iterator | *value* | decimal value to write | *numDigits* | number of digits to write |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#