add method

FloatingPoint add(
  1. dynamic other, {
  2. FloatingPointRoundingMode roundingMode = FloatingPointRoundingMode.roundNearestEven,
})

Adds other using a single-path adder.

Implementation

FloatingPoint add(dynamic other,
    {FloatingPointRoundingMode roundingMode =
        FloatingPointRoundingMode.roundNearestEven}) {
  final comparable = _validateComparable(other);
  return FloatingPointAdderSinglePath<FloatingPoint, FloatingPoint>(
          this, comparable,
          roundingMode: roundingMode)
      .sum;
}