- 2
How 1.25%0.5 is 0.25 ?
5 Answers
+ 2
Please use the searchbar. This question has been asked many times.
https://www.sololearn.com/discuss/35514/?ref=app
https://www.sololearn.com/discuss/1037574/?ref=app
+ 1
% is the modulo operator, the result r of A%B is what is left over after you remove n* B from A with n being the highest possible Integer and A=n*B+r
here, 0.5 fits twice in 1.25
1.25 = 2*0.5 + 0.25
so result is 0.25
0
% is the modulos operator. It's used to get the remainder of a division. The remainder of 1.25 % 0.5 is 0.25.
0
That's what I am asking how 1.25%0.5 is 0.25
0
It's 125/50 right. so how it is possible. the remainder is coming 25.