Numeric - operations | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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