base.py 236 B

12345678910
  1. #coding=utf-8
  2. class Formater():
  3. @staticmethod
  4. def formatValue(value):
  5. return int(round(float(value or 0) * 100, 0))
  6. @staticmethod
  7. def formatValueShow(value):
  8. return '%.2f' % (float(value or 0) / 100.0)