Return the maximum required output buffer size for toChars conversion of a double with the specified format and precision.

Synopsis

Declared in <bslalg_numericformatterutil.h>

constexpr
static
size_t
value(
    Format format,
    int precision);

Return Value

maximum required buffer size for the conversion

Parameters

Name

Description

format

floating‐point formatting style

precision

number of digits after the radix point

Created with MrDocs