BloombergLP::bdldfp::DecimalUtil::parseDecimal32Exact

Same as the related overload above for parseDecimal32Exact.

Synopsis

Declared in <bdldfp_decimalutil.h>

template<class STRING_TYPE>
static
int
parseDecimal32Exact(
    Decimal32* out,
    STRING_TYPE const& str);

Return Value

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

Parameters

NameDescription
outreceives the parsed value
strdecimal text to parse