subtract method
- dynamic other, {
- FloatingPointRoundingMode roundingMode = FloatingPointRoundingMode.roundNearestEven,
Subtracts other using a single-path adder.
Implementation
FloatingPoint subtract(dynamic other,
{FloatingPointRoundingMode roundingMode =
FloatingPointRoundingMode.roundNearestEven}) {
final comparable = _validateComparable(other);
return FloatingPointAdderSinglePath<FloatingPoint, FloatingPoint>(
this, comparable.negate(),
roundingMode: roundingMode)
.sum;
}