- 2

How 1.25%0.5 is 0.25 ?

22nd Apr 2019, 9:49 AM
Mayank Pal
Mayank Pal - avatar
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
22nd Apr 2019, 9:55 AM
Dragonxiv
Dragonxiv - avatar
+ 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
22nd Apr 2019, 10:02 AM
ifl
ifl - avatar
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.
22nd Apr 2019, 9:55 AM
Bela Brockmann
Bela Brockmann - avatar
0
That's what I am asking how 1.25%0.5 is 0.25
22nd Apr 2019, 9:58 AM
Mayank Pal
Mayank Pal - avatar
0
It's 125/50 right. so how it is possible. the remainder is coming 25.
22nd Apr 2019, 9:58 AM
Mayank Pal
Mayank Pal - avatar