remainder method

  1. @override
Precise remainder(
  1. dynamic divisor
)
override

Returns the remainder of the truncating division of this Number by divisor. The result r of this operation satisfies: this == (this ~/ other) * other + r. As a consequence the remainder r has the same sign as the operator /(divisor).

Implementation

@override
Precise remainder(dynamic divisor) => this - ((this ~/ divisor) * divisor);