haldis/app/utils.py
2019-09-12 20:53:25 +02:00

9 lines
220 B
Python

"Script which contains several utils for Haldis"
def euro_string(value: int) -> str:
"""
Convert cents to string formatted euro
"""
result = "{:.2f}".format(round(value / 100, 2))
return result