decimalToFloat overloads

Synopses

Declared in <bdldfp_decimalconvertutil.h>

Same as the overload taking Decimal32.

static
float
decimalToFloat(Decimal128 decimal);

Return a float closest to the specified decimal.

static
float
decimalToFloat(Decimal32 decimal);

Same as the overload taking Decimal32.

static
float
decimalToFloat(Decimal64 decimal);

Return Value

closest float representation of decimal

Parameters

Name

Description

decimal

value to convert

Created with MrDocs