add method
- dynamic other, {
- 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;
}