mirror of
https://github.com/LeRoid-hub/humiditycalc.git
synced 2025-01-31 03:34:56 +00:00
Update calc.go
This commit is contained in:
parent
3fbabafded
commit
a63fa5b728
@ -22,5 +22,5 @@ func AbsoluteHumidity(tempCelsius, relativeHumidity float64) float64 {
|
|||||||
// Calculate absolute humidity
|
// Calculate absolute humidity
|
||||||
absoluteHumidity := (relativeHumidity / 100) * saturationVaporPressure * Mw / (R * tempKelvin)
|
absoluteHumidity := (relativeHumidity / 100) * saturationVaporPressure * Mw / (R * tempKelvin)
|
||||||
|
|
||||||
return absoluteHumidity
|
return absoluteHumidity * 100
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user