Same as the related overload above for format.
Declared in <bdldfp_decimalutil.h>
static
int
format(
char* buffer,
int length,
Decimal128 value,
DecimalFormatConfig const& cfg = DecimalFormatConfig());
length of the formatted value
| Name | Description |
|---|---|
| buffer | buffer that receives the formatted characters |
| length | capacity of buffer in bytes |
| value | decimal value to format |
| cfg | optional formatting configuration |