Modulo and remainder doesnt seem clear | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Modulo and remainder doesnt seem clear

1.25%0.5=0.25

24th Jun 2017, 1:18 AM
Akinola Oluwatofunmi
Akinola Oluwatofunmi - avatar
2 Answers
+ 4
Hello @Akinola, This is a question many people ask. (If you make a search in the Q&A Discussions section for remainder you will get many results.) One way to understand the statement: '1.25 % 0.5 = 0.25' is: Imagine you have a bottle with 1.25 liters of coffee. If you divide it in cups of 0.5 liters, you will be able to fill 2 cups and 0.25 liters will REMAIN.
24th Jun 2017, 1:41 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
whoa!thanks got it now
24th Jun 2017, 1:43 AM
Akinola Oluwatofunmi
Akinola Oluwatofunmi - avatar