HUMIDITY: HUMID 48,temp2,RH Return DEW: B = (Log(RH/100)+((17.27*Temp2)/(237.3+Temp2)))/17.27 D = (237.3*B)/(1-B) D = Cint(D) DewPoint$=Str$(D) Return
HEATINDEX: 'heat index equation using ambient dry bulb temperature and relative humidity T=Temp T = (T*9/5)+32 c1 = -42.379 c2 = 2.04901523 c3 = 10.14333127 c4 = -0.22475541 c5 = -6.83783 * 10^-3 c6 = -5.481717 * 10^-2 c7 = 1.22874 * 10^-3 c8 = 8.5282 * 10^-4 c9 = -1.99 * 10^-6 HI1 = c1+(c2*T)+(c3*RH)+(c4*T*RH)+(c5*T^2) HI2 = (c6*RH^2)+(C7*T^2*RH)+(C8*T*RH^2)+(C9*T^2*RH^2) Index = HI1 + HI2 Index = (Index-32)*5/9 Index = Cint(Index) FeelsLike$=Str$(Index)