haldis/app/utils.py
2019-09-05 03:33:29 +02:00

6 lines
157 B
Python

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