0

Numeric - operations

1.25 % 0.5 = 0.25 I don’t understand. Pls! Help me) P.S.: Python.

25th Jun 2018, 2:48 PM
Alex
Alex - avatar
2 Respuestas
+ 2
I think here the operator is modulus division "%". It returns the reminder after the division => 1.25% 0.5 = 0.25, because 2*0.5 = 1.0 and the remainder is 0.25. You can find more info here https://stackoverflow.com/questions/17524673/understanding-the-modulus-operator
25th Jun 2018, 3:01 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
Thanks 😄
25th Jun 2018, 3:27 PM
Alex
Alex - avatar