0
How 1.25 % 0.5 >>> 0.25 🙁🙁
3 Respostas
+ 2
1.25 = 0.5 * 2 + 0.25
^^^^
remainder
0
% is division reminder,then 1.25 % 0.5 = 1 and 1.25 - 1 = 0.25
0
The modulus operator returns the remainder of the quotient: since 0.5 can go into 1.25 (evenly) twice, the remainder of 0.25 is the returned value.