Have you tried the code from the link I posted? It seems to be correct.
Eric
I looked at it but don't know how to make it work with my web page ...
'use strict';
/*
* @param {t} : The temperature in °C
* @param {h} : The air humidity in % (0 <= h <= 1)
* @returns : the humidex in °C
*/
module.exports = function humidex (t, h) {
var dewPoint = Math.pow(h, 1 /
* (112 + 0.9 * t) + 0.1 * t - 112;
var expIndex = 5417.753 * ((1 / 273.16) - (1 / (dewPoint + 273.16)));
return t + 0.5555 * (6.11 * Math.exp(expIndex) - 10);
};
off my web page
....... <font face="Arial">Humidex (feels like):</font> <font
face="Arial">
<script language="javascript">
// JavaScript Document
var T = ^vxv007^ ;
var H = ^vxv005^ ;
var D = ((Math.pow((H/100), 0.125))*(112+0.9*T)+(0.1*T)-112);
var temporary = 5471.7530 * (1/273.16 - 1/(D+273.16));
var temporary2 = 6.11*Math.log(temporary)-10;
result = T + 0.555 * temporary2;
if (result < T)
{ result = T;
}
document.write(Math.ceil(result ));
</script>°C </font>