+ 1

How come 1.25 % 0.5 = 0.25

plsss tell me

9th Sep 2017, 8:00 AM
JEEVANANDHAM S
JEEVANANDHAM S - avatar
9 Respuestas
+ 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.
9th Sep 2017, 8:06 AM
Hatsy Rei
Hatsy Rei - avatar
+ 9
@JEEVANANDHAM Typo. Edited.
9th Sep 2017, 8:09 AM
Hatsy Rei
Hatsy Rei - avatar
9th Sep 2017, 9:27 AM
Lakshay
Lakshay - avatar
0
how come 1.25 // 0.5 = 2
9th Sep 2017, 8:08 AM
JEEVANANDHAM S
JEEVANANDHAM S - avatar
0
explain bro ..plss
9th Sep 2017, 8:10 AM
JEEVANANDHAM S
JEEVANANDHAM S - avatar
0
i can't understand bro ... so plsss tell me simply
9th Sep 2017, 8:13 AM
JEEVANANDHAM S
JEEVANANDHAM S - avatar
0
% will output the remainder of the equation
9th Sep 2017, 6:23 PM
Alex
0
1.25 // 0.5 = 2 because 0.5 can fit into 1.25, 2 times
9th Sep 2017, 6:25 PM
Alex