Skip to content

Instantly share code, notes, and snippets.

@Sarchis
Created February 7, 2013 13:44
Show Gist options
  • Save Sarchis/4731007 to your computer and use it in GitHub Desktop.
Save Sarchis/4731007 to your computer and use it in GitHub Desktop.
percentage = float(25) / 100
#percentage = 12
calc = 1753
result = (percentage * calc)
print result
if result == int(result):
print(True)
else:
print(False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment