A weird problem with floating point ?
Hi, i met a very weird problem.
May be some know why!
Here is a example of the bug:
<html><head></head><body>
<script language='javascript'>
var v1=1.65; var v2=1.32;
alert(v1+v2);
</script>
</body></html>
When i execute this page, i get the following result : 2.9699999999999997
What 's happen ?
|