FloatingPointRounder class

Determines whether discarded floating-point bits require an increment.

Implementers

Constructors

FloatingPointRounder(Logic inp, int lsb, {required FloatingPointRoundingMode roundingMode, Logic? sign, Logic? extraSticky})
Determines rounding for inp, retaining bits from lsb upward.
FloatingPointRounder.fromGRS({required Logic retainedLsb, required Logic guard, required FloatingPointRoundingMode roundingMode, Logic? roundBit, Logic? sticky, Logic? extraSticky, Logic? sign})
Determines rounding from explicit retained and discarded-bit fields.

Properties

doRound → Logic
Whether the retained value should be incremented.
no setter
hashCode → int
The hash code for this object.
no setterinherited
inexact → Logic
Whether any discarded bit is nonzero.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited