Conditions | 1 |
Total Lines | 5 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from babel.dates import format_date, get_month_names |
||
8 | def pesos(amount): |
||
9 | decimal_part = "{:.2f}".format(amount).split(".")[1] |
||
10 | integer_part = num2words(int(amount), lang=LANG, to='currency').upper() |
||
11 | |||
12 | return "${0:,.2f} (SON: {1} {2}/100M.N.)".format(amount, integer_part, decimal_part) |
||
13 | |||
38 |