Last active
May 5, 2020 10:35
-
-
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?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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