/
How can we find the remainder?

How can we find the remainder?

We can use the modulo % operator to find the remainder of dividing a number:

i.e. dividing 12 by 10 gives 1 with the remainder 2.

Related content

Arithmetic Operators
Arithmetic Operators
More like this
String:sub()
More like this
How do we add and increment Javascript numbers?
How do we add and increment Javascript numbers?
More like this
How do computers represent negative numbers?
How do computers represent negative numbers?
More like this
How does binary work?
How does binary work?
More like this
for loop
More like this