SyntaxFix
Write A Post
Hire A Developer
Questions
Make at least one of them float, then it will be float division, not integer:
>>> (20.0-10) / (100-10) 0.1111111111111111
Casting the result to float is too late.