BloombergLP::bdldfp::DecimalImpUtil::binaryToDecimal64

Create a Decimal64 closest to binary floating-point value.

Synopses

Declared in <bdldfp_decimalimputil.h>

Create a Decimal64 closest to binary floating-point value.

static
DecimalImpUtil::ValueType64
binaryToDecimal64(double value);
» more...

Create a Decimal64 closest to binary floating-point value.

static
DecimalImpUtil::ValueType64
binaryToDecimal64(float value);
» more...

Return Value

a Decimal64 closest to binary floating-point value

Parameters

NameDescription
valuebinary floating-point value to convert