signum property

int signum

The signum function value of this.

E.e. -1, 0 or 1 as the value of this Rational is negative, zero or positive.

Implementation

int get signum {
  final v = compareTo(_r0);
  if (v < 0) return -1;
  if (v > 0) return 1;
  return 0;
}