+ 5

1.25%0.5 = 0.25 HOW?

29th Jan 2018, 5:26 AM
Funny Spot
Funny Spot - avatar
5 Réponses
+ 20
How modulos work is they take the division of the two operands, then return the remainder. In this example, 0.5 can fully go into 1.25 2 times without going over, leaving a remainder of 0.25 (0.5 * 2 = 1, 1.25 - 1 = 0.25) Hope this cleared that up!
29th Jan 2018, 5:28 AM
Faisal
Faisal - avatar
+ 4
tnx faisal
29th Jan 2018, 7:19 AM
Funny Spot
Funny Spot - avatar
+ 2
1.25 - 2 * 0.5 = 0.25
4th Jun 2019, 12:32 AM
Solo
Solo - avatar
+ 1
The operator used i.e "%" simply gives us the remainder of the two numbers. Divide 1.25 with 0.5 and the remainder is 0.25. p.s.: Do it manually if still not understood xp
31st Jan 2018, 6:26 PM
Saket Gupta
Saket Gupta - avatar
0
2*0.5+0.25=1.25
9th Feb 2019, 4:09 PM
akbis