adding numbers doesn't add up !!! help
Ok I am a complete newbie, so remember we all start somewhere!
I am trying to add three numbers together, but it never gives me what I want. My numbers where originally coming from variables so I thought perhaps there was something wrong with how i had set it up. So I hardcoded them and simplified it to the following :
<script language="JavaScript" type="text/JavaScript">
alert (494.06 + 576.26 + 514.06)
</script>
The answer I get is : 1584.3799999999998
What is going on ????????
Many thanks
|