The purpose of this page is to help you understand how computers do math. These exercises are not meant to help you understand math better, it is to teach you how to tell computer to do math for you.
While you're probably already comfortable with division, this might be your first encounter with the modulo operation. The modulo operation is used to find the remainder after division. In JavaScript the modulo operator is denoted with a percent sign %.
A quick example - dividing 10 by 6:
Divide 16849 by 100 (you get 168.49)
Take the result, remove the decimal with Math.floor(168.49)
(you get 168)
Divide 16849 by 10 (you get 1684.9)
Take the result, remove the decimal with Math.floor(1684.9) (you get 1684)
Divide 248 by 10 (you get 24.8)
Take the result, remove the decimal (you get 24)
Divide 168 by 10 (you get 16.8)
Take the result, remove the decimal (you get 16)
25249 % 100 gives you the last 2 numbers, 49)
25249 % 1000 gives you the last 3 numbers, 249)
Get 249 from 25249 (look at mod section)
Get 24 from 249 (look at division section)
or
Get 2524 from 25249 (divide by 10)
2524 % 100, then remove decimal to get 24
Get 5249 from 25249
Get 52 from 5249