BloombergLP::bdldfp::DecimalImpUtil::format

Format value into buffer using cfg.

Synopses

Declared in <bdldfp_decimalimputil.h>

Format value into buffer using cfg.

static
int
format(
    char* buffer,
    int length,
    ValueType128 value,
    DecimalFormatConfig const& cfg);
» more...

Format value into buffer using cfg.

static
int
format(
    char* buffer,
    int length,
    ValueType32 value,
    DecimalFormatConfig const& cfg);
» more...

Format value into buffer using cfg.

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

Return Value

the length of the formatted value

Parameters

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