In comp.lang.javascript message <7e003707-02c6-4309-8462-2ab9e2e8822c@q2
7g2000prf.googlegroups.com>, Thu, 22 May 2008 05:07:44, Subhash
<su************@gmail.composted:
>See following code:
<script type="text/javascript">
alert (2168954000534143302);
</script>
It shows : 2168954000534143200
It should have shown: 2168954000534143302
Is it because it is a very big number?
The actual value stored for that number, in an IEEE Double, is
+2168954000534143232.0 but the default conversion to string zeroes
meaningless digits.
<URL:http://www.merlyn.demon.co.uk/js-misc0.htm#DW4etc.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.