⬅︎ Back to Integer division in programming languages
If you do -7/float(10) what's the answer?
In Python integer division why does -7/10 == -1 and not 0?
That's very different. That's -7/10.0 which is something else.
Comment
If you do -7/float(10) what's the answer?
Parent comment
In Python integer division why does -7/10 == -1 and not 0?
Replies
That's very different. That's -7/10.0 which is something else.