2019-09-10 13:17:35 +00:00
|
|
|
"Script which contains several utils for Haldis"
|
|
|
|
|
|
|
|
|
2019-09-07 23:58:21 +00:00
|
|
|
def euro_string(value: int) -> str:
|
2019-08-28 01:46:04 +00:00
|
|
|
"""
|
|
|
|
Convert cents to string formatted euro
|
|
|
|
"""
|
2019-09-05 01:33:29 +00:00
|
|
|
result = "€ {:.2f}".format(round(value / 100, 2))
|
2015-03-31 18:15:22 +00:00
|
|
|
return result
|