Pedantically removed degree symbol for Kelvin temperature scale, as it is an absolute scale.

pull/295/head^2
joost_bergen 2021-04-26 17:14:51 +02:00
parent 45a30ddff8
commit cbdd62a626
1 changed files with 1 additions and 1 deletions

View File

@ -5334,7 +5334,7 @@ def temperature(value: int, scale: str = "celsius") -> Tuple[int, str]:
elif scale == "fahrenheit":
return (round(value * 1.8 + 32), "°F")
elif scale == "kelvin":
return (round(value + 273.15), "°K")
return (round(value + 273.15), "K")
elif scale == "rankine":
return (round(value * 1.8 + 491.67), "°R")
else: