round result

This commit is contained in:
joBr99
2022-04-01 19:08:55 +02:00
parent 9d256aecb8
commit 7ddb7f30ce

View File

@@ -45,7 +45,7 @@ def rgb_dec565(rgb_color):
def convert_temperature_from_celsius(c, unit):
if unit == "fahrenheit":
temp = (c * 1.8) + 32
temp = round(((c * 1.8) + 32), 1)
return f"{temp}°F"
else:
return f"{c}°C"