subtract method

FloatingPoint subtract(
  1. dynamic other, {
  2. 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;
}