Return a Decimal64 with the given significand and exponent.
Synopsis
Declared in <bdldfp_decimalimputil.h>
static
ValueType64
makeDecimal64(
int significand,
int exponent);
Description
Return a Decimal64 object that has the specified significand and exponent, rounded according to the current decimal rounding mode, if necessary. If an overflow condition occurs, store the value of the macro ERANGE into errno and return infinity with the appropriate sign.
Return Value
a Decimal64 with the given significand and exponent
Parameters
Name |
Description |
significand |
coefficient of the decimal value |
exponent |
power of ten applied to |
Created with MrDocs