Created
May 6, 2013 11:59
-
-
Save selam/5524730 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import sys | |
def sifir_zarar(satis_fiyati, komisyon): | |
anapara = satis_fiyati - (satis_fiyati * komisyon) | |
# komisyondan sonra kalan para | |
anapara = float("{0:.2f}".format(anapara)) | |
sifir_zararli_fiyat = satis_fiyati + (satis_fiyati * komisyon) | |
return anapara, sifir_zararli_fiyat | |
print sifir_zarar(float(sys.argv[1]), sys.argv[2] if len(sys.argv) > 3 else 0.006) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment