BloombergLP::bdldfp::DecimalUtil::parseDecimal32

Parse str as a Decimal32 into out.

Synopsis

Declared in <bdldfp_decimalutil.h>

static
int
parseDecimal32(
    Decimal32* out,
    char const* str);

Description

The value of out is unspecified if the function returns a non-zero value.

Return Value

0 on success and non-zero otherwise

Parameters

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