[#BloombergLP-bdldfp-Decimal_BslFmtFormatterImpl-format]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/Decimal_BslFmtFormatterImpl.adoc[Decimal&lowbar;BslFmtFormatterImpl]::format
:relfileprefix: ../../../
:mrdocs:

Create string representation of the specified `value`, customized in accordance with the requested format and the specified `formatContext`, and copy it to the output that the output iterator of the `formatContext` points to&period; The behavior is undefined unless `t&lowbar;FORMAT&lowbar;CONTEXT` is either `std&colon;&colon;format&lowbar;context` if that is supported, or otherwise `bslfmt&colon;&colon;format&lowbar;context`&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimal&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;FORMAT&lowbar;CONTEXT&gt;
t&lowbar;FORMAT&lowbar;CONTEXT::iterator
format(
    t&lowbar;VALUE const& value,
    t&lowbar;FORMAT&lowbar;CONTEXT& formatContext) const;
----


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