integer division #17462
Unanswered
krismc
asked this question in
Using MicroPython
integer division
#17462
Replies: 1 comment 8 replies
-
MicroPython, like CPython, has an integer division operator that performs floor division. The constant
If the constant had been stored as the exact value, the result would be zero. With floor division, the quotient is 124, plus a remainder of 0.7999985 |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can't figure out why integer division is giving me a different answer to regular division?
Beta Was this translation helpful? Give feedback.
All reactions