Skip to content

Instantly share code, notes, and snippets.

@StoneSwine
Last active May 5, 2020 10:35
Show Gist options
  • Save StoneSwine/2a14b5707228f61bc1aff0091c71ef5c to your computer and use it in GitHub Desktop.
Save StoneSwine/2a14b5707228f61bc1aff0091c71ef5c to your computer and use it in GitHub Desktop.
Have you ever wondered how expensive the gasprice must be before it is feasible to use a percentage discount instead of a static discount?
print([i/100 for i in range(1,20*100) if (i/100)*0.97<(i/100)-0.55][0]) # three percent vs. 0.55 kr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment