≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Javascript bugs - be warned
Posted by:
(you are not logged in)
Enter the missing letter in: "In?ernational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Robo and Srfstudio, thank you for your interesting comments. About the .toPrecision() method, I noticed that it is not as accurate as expected when working with large numbers. [code]var worfsMoney = 10.12345 ** 32; var bloodWinePrice = 10.12345 ** 31; var worfsTotal = bloodWinePrice * 10.12345; n1 = worfsTotal.valueOf(); n2 = worfsMoney.valueOf(); if (n2 == n1) { ('true'); } else { ('not true'); } n2 - n1; n3 = worfsTotal.toPrecision(40); n4 = worfsMoney.toPrecision(40); if (n4 == n3) { ('true'); } else { ('not true'); } n4 - n3;[/code] *smile*[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact