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

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;

== 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
writeSecondFraction(
    t&lowbar;ITERATOR out,
    int precision,
    t&lowbar;CHAR decimalChar,
    int millisecond,
    int microsecond);
----


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