BloombergLP::bdldfp::DecimalConvertUtil_IntelDfp::decimalToFloat

decimalToFloat overloads

Synopses

Declared in <bdldfp_decimalconvertutil_inteldfp.h>

Same as the related overload above for decimalToFloat.

static
float
decimalToFloat(Decimal128 decimal);
» more...

Return a float closest to the value of the specified decimal.

static
float
decimalToFloat(Decimal32 decimal);
» more...

Same as the related overload above for decimalToFloat.

static
float
decimalToFloat(Decimal64 decimal);
» more...

Return Value

closest float representation of decimal

Parameters

NameDescription
decimalvalue to convert