BloombergLP::bdldfp::DecimalConvertUtil::decimalToFloat

Same as the overload taking Decimal32.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

static
float
decimalToFloat(Decimal128 decimal);

Return Value

closest float representation of decimal

Parameters

NameDescription
decimalvalue to convert