≡
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: "Internat?onal"
(you are not logged in)
Text:
[quote][b]Robo[/b] wrote: [quote][b][/b] wrote: Hello, I am a newbie in JS. I tried this code : [code]var worfsMoney = (600.9).toPrecision(8); var bloodWinePrice = (200.3).toPrecision(8); var worfsTotal = (bloodWinePrice * 3).toPrecision(8); worfsMoney = worfsTotal; worfsTotal; (worfsTotal * 3).toPrecision(8);[/code] https://1drv.ms/u/s!AjokN1FU3jK1km4Wn_Pl1NgJPggK?e=4NJgxK[/quote] thanks = yes, that might help some people, but my main problem is saving game data from an array and loading back up again. Both '.toFixed. and also ..toPrecision' have limitations on what numbers it can handle before using exponential notation like for example '1.2e+3'. Once the decimal is represented as exponential notation and saved - once reloaded it is no longer recognizable as a number by CopperCube and breaks the code..[/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