| Conditions | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/python |
||
| 26 | @property |
||
| 27 | def human_readable(self): |
||
| 28 | """Return the amount in a readable format like $15.00 instead of 1500 |
||
| 29 | |||
| 30 | :return: |
||
| 31 | """ |
||
| 32 | if self._currency_sign_start: |
||
| 33 | return "{0:s}{1:.2f}".format(self._currency_sign, self._amount / 100) |
||
| 34 | else: |
||
| 35 | return "{1:.2f}{0:s}".format(self._currency_sign, self._amount / 100) |
||
| 36 | |||
| 44 |