remainder method

SqlMoney remainder(
  1. Object other
)

Return the remainder from dividing this num by other.

Implementation

SqlMoney remainder(Object other) {
  if (other is SqlMoney) {
    return SqlMoney(value.remainder(other.value));
  } else if (other is num) {
    return SqlMoney(value.remainder(other));
  } else if (other is String) {
    return SqlMoney(value.remainder(double.parse(other.toString())));
  }
  throw ArgumentError(other.toString() + 'is not a number');
}