+ 1
How we calculate this 1.25%0.5=0.5 I don't enderstand
6 odpowiedzi
+ 3
It can't be 0.5. It's 0.25. Maybe you typed something wrong.
+ 3
when you divide 1.25 by 0.5 you get 2 remain 0.25
+ 2
Stamen is correct. % results in the remainder. 0.5+0.5=1.0 .. which leaves a remainder of .25
+ 2
it's linear
+ 2
yes
0
so using the modulo operator gives you just the remainder of the answer? so if the scenario is 5%2, the output is 1?