floating point numbers question

Giganews Newsgroups
Subject: floating point numbers question
Posted by:  benedikt.wisma…@wiai.uni-bamberg.de (Benedikt Wismans)
Date: 22 Sep 2003

dear group!

<script language="javascript">
var a = 60381.11;
var b = 1437261.58;
var c = a + b;
alert (c); -> 1497642.6900000002

var a = 60381.11;
var b = 1437261.50;
var c = a + b;
alert (c); -> 1497642.61

</script>

can anybody help me with this? Obviously some kind of precision
problem, but those numbers are not big at all. Any ideas where to find
documentation of internal data representation in js? Any hint is
welcome.

Benedikt

Replies