Return a Decimal128 converted from the specified binary.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

static
Decimal128
decimal128FromDouble(
    double binary,
    int digits = 0);

Return Value

decimal value restored from binary

Parameters

Name

Description

binary

binary floating‐point value to convert

digits

optional significant digit count; see decimal128FromFloat

Created with MrDocs