+ 1
How do you explain the modulo operation?
1.25 % 0.5 = 0.25
2 Answers
+ 2
It divides the 2 numbers, and returns the remainder. You know, like in second grade: 7 / 3 = 2, remainder is 1, because 7 - (3 * 2) = 1
1.25 / 0.5 is 2, remainder is 0.25
+ 2
Modulo operation gives the reminder of division. In this case => 2*0.5 = 1.0 and the reminder is 1.25 - 1.0 => 0.25.