[#BloombergLP-bdldfp-DecimalImpUtil-format-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::format
:relfileprefix: ../../../
:mrdocs:

Format `value` into `buffer` using `cfg`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
format(
    char* buffer,
    int length,
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] value,
    xref:BloombergLP/bdldfp/DecimalFormatConfig.adoc[DecimalFormatConfig] const& cfg);
----

== Return Value

the length of the formatted value

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| destination character buffer
| *length*
| capacity of `buffer` in characters
| *value*
| decimal value to format
| *cfg*
| formatting configuration
|===


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