haldis/app/utils.py
2019-09-08 01:58:21 +02:00

6 lines
169 B
Python

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