Subj : Weird Math To : netscape.public.mozilla.jseng From : Andy Madigan Date : Wed Sep 15 2004 03:20 pm I've been running some scripts through rhino, and one script kept on getting an equation wrong, I finally found the problem, I ran a simple test through the Rhino Shell, here's the output: js> 100 - 69.1 30.900000000000006 Am I going nuts? Is this something about how javascript does math that I don't know? (Note: 100 - 59.1 is correct) P.S. Also: js> 100 - 69.1 == 100 - 59.1 - 10 false P.P.S In case this is something VM/System related, I am using Sun's J2SDK 1.4.2_05 on Debian Sid (kernel 2.4.25) ===== .