round result

This commit is contained in:
Johannes
2022-04-01 19:08:55 +02:00
parent 73f3ffd586
commit 98dfab74ef

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"