JRS: In article <bk**********@titan.btinternet.com>, seen in
news:comp.lang.javascript, Richard Cornford
<ri*****@litotes.demon.co.uk> posted at Mon, 22 Sep 2003 23:20:39 :-
"Benedikt Wismans" <be**************@wiai.uni-bamberg.de> wrote in
message news:f9**************************@posting.google.c om...
<snip>... . Any ideas where to find documentation of internal
data representation in js? Any hint is welcome.
ANSI/IEEE Std 754-1985: IEEE Standard for Binary
Floating-Point Arithmetic. Institute of Electrical
and Electronic Engineers, New York (1985).
<URL:http://www.merlyn.demon.co.uk/js-maths.htm#Float>
<URL:http://www.merlyn.demon.co.uk/pas-real.htm>
<URL:http://www.merlyn.demon.co.uk/pas-type.htm>
are on-line, containing information and links.
Present javascript numbers are IEEE Doubles, and so have one sign bit,
51 magnitude bits with an additional implicit 1, and 11 exponent bits.
Any integer from 0 up to 2^53 = 9,007,199,254,740,992 in magnitude
should be stored exactly. The range slightly exceeds +-1.7×10^308.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.