Javascript Bad Math
I really wish someone could explain to me how, in javascript, the following calculation happens:
0.2320 * 100 = 23.20000000000003
Check out the following script, which I only managed to fix by setting the precision of the offending result to 4 significant digits. The glitch can be seen with the following script:
<html>
<body>
<script language="javascript">
var x = Number('0.2320');
alert(x);
var y = x*100;
alert(y);
</script>
</body>
</html>