Skip to content

rem [terminology]

Terminology

Usage

  • Use for an arithmetic remainder.
  • It is a conventional and clear abbreviation of remainder.
  • Prefer it over r because r commonly means right pointer or row.
int_part, rem = divmod(a, b)

while rem:
    digit, rem = divmod(rem * 10, b)