Skip to content

Instantly share code, notes, and snippets.

@martin-martin
Created June 10, 2018 10:56
Show Gist options
  • Save martin-martin/35e22fa9d35e29020a0745b8c991ad68 to your computer and use it in GitHub Desktop.
Save martin-martin/35e22fa9d35e29020a0745b8c991ad68 to your computer and use it in GitHub Desktop.
about python's basic float type
# simple float calculation
print(42.42 / 3)
# mixing integers with floats yields floats
part_of_whole = 0.5
whole = part_of_whole * 2
print(whole)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment