FIXED... thanks!
I'm... well... confused. Anybody else notice something weird about the following? Namely, the fact that it starts displaying more than five decimals? eg. $0.037500000000000006
<html>
<head>
<script>
<!--
var centspersecond=0.00375;
var totalmoney=0.0;
function recursive()
{
totalmoney += centspersecond;
dyn.innerHTML = "$" + totalmoney.toString();
setTimeout("recursive();", 1000); //run again every second
}
// -->
</script>
</head>
<body onload="recursive();">
<span id=dyn></span>
</body>
</html>
I'm using IE 6.0.2800.1106.xpsp2.030422-1633
I'm... well... confused. Anybody else notice something weird about the following? Namely, the fact that it starts displaying more than five decimals? eg. $0.037500000000000006
<html>
<head>
<script>
<!--
var centspersecond=0.00375;
var totalmoney=0.0;
function recursive()
{
totalmoney += centspersecond;
dyn.innerHTML = "$" + totalmoney.toString();
setTimeout("recursive();", 1000); //run again every second
}
// -->
</script>
</head>
<body onload="recursive();">
<span id=dyn></span>
</body>
</html>
I'm using IE 6.0.2800.1106.xpsp2.030422-1633
