ofScaledBigInt method

FpvType ofScaledBigInt(
  1. BigInt significand,
  2. int exponent, {
  3. FloatingPointRoundingMode roundingMode = FloatingPointRoundingMode.roundNearestEven,
})

Constructs a value equal to significand times two to exponent.

The exact dyadic value is rounded once into this floating-point format.

Implementation

FpvType ofScaledBigInt(BigInt significand, int exponent,
        {FloatingPointRoundingMode roundingMode =
            FloatingPointRoundingMode.roundNearestEven}) =>
    _quantize((significand: significand.abs(), exponent: exponent),
        negative: significand.isNegative, roundingMode: roundingMode);