remainder method

double remainder (
  1. num other
)
override

The remainder of the truncating division of this by other.

The result r of this operation satisfies: this == (this ~/ other) * other + r. As a consequence the remainder r has the same sign as the divider this.

The result is an int, as described by int.remainder, if both this number and other is an integer, otherwise the result is a double.

Implementation

double remainder(num other);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/double/remainder.html