+ 1
Please explain %
How does it give 1.5%0.5 = 0.25
4 Respuestas
+ 2
% or modulus finds the remainder of an integer division.
0.5 is two times into 1.25, there will be a remainder of 1.25 - 2*0.5 = 0.25
+ 1
Airree is right, 1.5%0.5 = 0
EDIT: if you typed wrong and you actually meant "1.25%0.5" then yes it's 0.25
+ 1
% is division reminder!
0
No, 1.5 % 0.5 isn't equal to 0.25, it's equal to 0