Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Floor vs Float Point Division in Python 3
# Floating Point Division
231871064940156750 / 5
# => 4.637421298803135e+16
# Turn the result into a integer
int(4.637421298803135e+16)
# => 46374212988031352
# Floor Division
231871064940156750 // 5
# => 46374212988031350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.