FloatingPointBF16Value.ofDouble constructor

FloatingPointBF16Value.ofDouble(
  1. double inDouble
)

Numeric conversion of a FloatingPointBF16Value from a host double

Implementation

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

  return FloatingPointBF16Value.ofLogicValue(fpv.value);
}