FixedPoint.of constructor

FixedPoint.of(
  1. Logic signal, {
  2. required bool signed,
  3. required int m,
  4. required int n,
})

Cast logic to fixed point

Implementation

FixedPoint.of(Logic signal,
    {required this.signed, required this.m, required this.n})
    : super(width: _fixedPointWidth(signed, m, n)) {
  this <= signal;
}