BloombergLP::bdldfp::DecimalImpUtil::checkLiteral

Accept a double so valid unsuffixed floating literals are allowed.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
void
checkLiteral(double value);

Description

Overload to avoid an error when the decimal floating-point literal (without the suffix) can be interpreted as a double literal.

Parameters

NameDescription
valuedouble value from an unsuffixed floating literal