BloombergLP::bdldfp::DecimalUtil::parseDecimal128Exact

parseDecimal128Exact overloads

Synopses

Declared in <bdldfp_decimalutil.h>

Same as the related overload above for parseDecimal128Exact.

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

Parse str into out, reporting whether the conversion is exact.

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

Return Value

0 if exact, positive if approximate, and negative if unparsable

Parameters

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