Skip to content

digit [terminology]

Terminology

Usage

  • Use for one decimal or base-specific digit.
  • Keep the full word because d can be confused with a generic value or direction.
  • It is appropriate for values extracted with divmod or character conversion.
x, digit = divmod(x, 10)
rev = rev * 10 + digit