Update calc.go

This commit is contained in:
Jan 2024-11-03 22:05:10 +01:00 committed by GitHub
parent 3fbabafded
commit a63fa5b728
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}