FloatingPointTF32Value.ofDouble constructor

FloatingPointTF32Value.ofDouble(
  1. double inDouble
)

Numeric conversion of a FloatingPointTF32Value from a host double

Implementation

factory FloatingPointTF32Value.ofDouble(double inDouble) {
  final fpv = FloatingPointValue.ofDouble(inDouble,
      exponentWidth: exponentWidth, mantissaWidth: mantissaWidth);
  return FloatingPointTF32Value.ofLogicValue(fpv.value);
}