Created
May 11, 2009 09:52
-
-
Save veryhappythings/109933 to your computer and use it in GitHub Desktop.
TextMate command to convert VAT from 17.5% to 15%
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
#!/usr/bin/env python | |
import os | |
import sys | |
try: | |
sys.stdout.write('%.2f' % ((float(os.environ.get('TM_SELECTED_TEXT')) / 1.175) * 1.15)) | |
except: | |
sys.stdout.write(os.environ.get('TM_SELECTED_TEXT')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment