Skip to content

quotient

Integer portion of a division.

v = quotient(numerator, denominator)

Returns the integer part of numerator / denominator, discarding the remainder.

quotient(5, 2) % 2
quotient(-10, 3) % -3
  • mod — Modulo operation (positive result).
  • trunc — Truncate toward zero.