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