+ 1
How come 1.25 % 0.5 = 0.25
plsss tell me
9 Answers
+ 15
1.25 // 0.5 = 2
1.25 % 0.5
= 1.25 - (0.5 * 2)
= 1.25 - 1
= 0.25
i.e. 0.25 is the remainder of floor division of 1.25 by 0.5.
+ 9
@JEEVANANDHAM Typo. Edited.
+ 4
You can also refer to:
https://www.sololearn.com/discuss/643632/?ref=app
0
how come 1.25 // 0.5 = 2
0
explain bro ..plss
0
i can't understand bro ... so plsss tell me simply
0
% will output the remainder of the equation
0
1.25 // 0.5 = 2 because 0.5 can fit into 1.25, 2 times