BloombergLP::bdldfp::DecimalUtil::parseDecimal128

parseDecimal128 overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the related overload above for parseDecimal128.

static
int
parseDecimal128(
    Decimal128* out,
    char const* str);
» more...

Parse str as a decimal floating-point number into out.

template<class STRING_TYPE>
static
int
parseDecimal128(
    Decimal128* out,
    STRING_TYPE const& str);
» more...

Return Value

0 on success and non-zero otherwise

Parameters

NameDescription
outreceives the parsed value
strnull-terminated decimal text to parse