From a63fa5b728fc7f5d09b638110f0d2196fd5b190b Mon Sep 17 00:00:00 2001 From: Jan <45685070+LeRoid-hub@users.noreply.github.com> Date: Sun, 3 Nov 2024 22:05:10 +0100 Subject: [PATCH] Update calc.go --- internal/calc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/calc.go b/internal/calc.go index c767d99..a557da2 100644 --- a/internal/calc.go +++ b/internal/calc.go @@ -22,5 +22,5 @@ func AbsoluteHumidity(tempCelsius, relativeHumidity float64) float64 { // Calculate absolute humidity absoluteHumidity := (relativeHumidity / 100) * saturationVaporPressure * Mw / (R * tempKelvin) - return absoluteHumidity + return absoluteHumidity * 100 }