diff options
Diffstat (limited to 'core/units.h')
-rw-r--r-- | core/units.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/units.h b/core/units.h index 1b042513b..0ce97e21c 100644 --- a/core/units.h +++ b/core/units.h @@ -230,6 +230,11 @@ static inline unsigned long C_to_mkelvin(double c) return lrint(c * 1000 + ZERO_C_IN_MKELVIN); } +static inline unsigned long cC_to_mkelvin(double c) +{ + return lrint(c * 10 + ZERO_C_IN_MKELVIN); +} + static inline double psi_to_bar(double psi) { return psi / 14.5037738; |