Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: JavaScript FAQ Knowledge Base, March 23, 1999 at 15:52:48:

You are here: irt.org | About | Feedback | 123 [ previous next ]

Feedback on:
JavaScript FAQ Knowledge Base

Sent by
Alisa Krause on March 23, 1999 at 15:52:48:

Worth:
Not worth reading

Comments:
I could not use the answer to "Q7 How do you round a number to a X decimal places?". At least in Netscape 4.05, you cannot multiply decimal numbers and expect a correct answer. For instance, in Netscape 4.05, 74.85 * Math(10,2) = 7485.999999. I'm guessing this is because Javascript treats these numbers as floating point, and therefore handles the decimals imprecisely. My solution is to work in integers for doing calculations, and then convert them to decimals whenever I need to display them (such as in a calculator). Any other insights would be greatly appreciated.



Other feedback on 'JavaScript FAQ Knowledge Base' - show all

©2018 Martin Webb