FloatingPoint16Value.ofDouble constructor

FloatingPoint16Value.ofDouble(
  1. double inDouble
)

Numeric conversion of a FloatingPoint16Value from a host double

Implementation

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

  return FloatingPoint16Value.ofLogicValue(fpv.value);
}