BloombergLP::bdldfp::DecimalUtil::parseDecimal32Exact

parseDecimal32Exact overloads

Synopses

Declared in <bdldfp_decimalutil.h>

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

static
int
parseDecimal32Exact(
    Decimal32* out,
    char const* str);
» more...

Same as the related overload above for parseDecimal32Exact.

template<class STRING_TYPE>
static
int
parseDecimal32Exact(
    Decimal32* 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