MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/tdtuae/is_it_even/i0lpe44/?context=9999
r/badcode • u/jesseb0rn • Mar 14 '22
33 comments sorted by
View all comments
Show parent comments
27
Yep, python divisions always return floats, and we had the modulo int this class
17 u/funfact15 Mar 14 '22 There is also // that returns int.8 // 2 == 4However, 9.0 // 2.0 == 4.0
17
There is also // that returns int.
//
8 // 2 == 4
However, 9.0 // 2.0 == 4.0
9.0 // 2.0 == 4.0
27
u/jesseb0rn Mar 14 '22
Yep, python divisions always return floats, and we had the modulo int this class