BloombergLP::bdldfp::DecimalImpUtil::format

Format value into buffer using cfg.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
int
format(
    char* buffer,
    int length,
    ValueType64 value,
    DecimalFormatConfig const& cfg);

Return Value

the length of the formatted value

Parameters

NameDescription
bufferdestination character buffer
lengthcapacity of buffer in characters
valuedecimal value to format
cfgformatting configuration