FloatingPointBF16Value.ofDoubleUnrounded constructor

FloatingPointBF16Value.ofDoubleUnrounded(
  1. double inDouble
)

Convert a floating point number into a FloatingPointBF16Value representation. This form performs NO ROUNDING.

Implementation

factory FloatingPointBF16Value.ofDoubleUnrounded(double inDouble) {
  final fpv = FloatingPointValue.ofDoubleUnrounded(inDouble,
      exponentWidth: exponentWidth, mantissaWidth: mantissaWidth);

  return FloatingPointBF16Value.ofLogicValue(fpv.value);
}