Temperature in Kelvin? #2774
quantenzitrone
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
That's seems easy enough to add. Do you personally have a use-case for this? I am not inclined to accept new features if no one actually wants them |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since the temperature module has support for temperature in °C and °F, I thought it would be nice to support K as well, since Kelvin is the standard SI-Unit for temperature.
I looked over the temperature.cpp file, and it seems to me, as if adding the temperature in Kelvin would be as easy as adding a few lines to define Kelvin as a formatting option and calculating Kelvin from °C with
int temp_k = floor(m_temp + 273.15);
Beta Was this translation helpful? Give feedback.
All reactions