0

I am trying to show the last 2 digits of an integer. Basically, if I have an input of 1929, it would only display 29. For input 290016, it would display 16.

martineau
  • 119,623
  • 25
  • 170
  • 301
C Crowe
  • 9
  • 2

1 Answers1

5

Modulus.

>>> 1929 % 100
29
>>> 290016 % 100
16
Kevin
  • 74,910
  • 12
  • 133
  • 166