Advertisement
jmunsch

Python: round 2 decimals

Jul 31st, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         # hack for msrp watches
  2.         reservePrice = ''
  3.         if '1' in self.MainFrame.currentItemInfo['retailer_code']:
  4.             msrp = self.currentItemInfo['msrp']
  5.             if '$' in msrp:
  6.                 msrp = msrp.split('$')[-1]
  7.             if float(msrp) >= 300:
  8.                 reservePrice = "%.2f" % round(int(float(msrp)*float(.252)),2),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement