Same as the related overload above for format.

Synopsis

Declared in <bdldfp_decimalutil.h>

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

Return Value

length of the formatted value

Parameters

Name

Description

buffer

buffer that receives the formatted characters

length

capacity of buffer in bytes

value

decimal value to format

cfg

optional formatting configuration

Created with MrDocs