BloombergLP::bdldfp::DecimalImpUtil::binaryToDecimal32

Create a Decimal32 closest to binary floating-point value.

Synopsis

Declared in <bdldfp_decimalimputil.h>

static
DecimalImpUtil::ValueType32
binaryToDecimal32(double value);

Return Value

a Decimal32 closest to binary floating-point value

Parameters

NameDescription
valuebinary floating-point value to convert