operator ~/ method

PgDecimal operator ~/(
  1. PgDecimal other
)

Divisão inteira truncada em direção a zero (div do PostgreSQL).

Implementation

PgDecimal operator ~/(PgDecimal other) {
  final special = _divideSpecial(other);
  if (special != null) return special;
  return PgDecimal._finiteValue(
      _divideUnscaled(other, 0, PgRoundingMode.towardZero), 0);
}