Dewpoint
Helper function to calculate dewpoint from temperature and relative humidity
Description
Float:Dewpoint( Float:temp, Float:RH )
Calculates dewpoint in degrees Celsius.
This functions uses the Magnus-Tetens formula.
Parameters
temp | Temperature in degrees Celsius (-45 to +60 °C) |
RH | Relative humidity in percent (0-100) |
Return value
Dew point in degrees Celsius.
Example usage
new Float:temperature = 18.5 new Float:relhum = 22.9; new Float:dp; dp = Dewpoint( temperature, relhum ); // dp is now 8.87