Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Version-specific issues for Mathematica 9 (other than bugs).
13
votes
3
answers
941
views
Wrong numerical value while exporting to a JSON string
The following code:
ExportString[{"a" -> 2000000., "b" -> 0.000001}, "JSON"]
Gives the results
{"a" : 2.e60,
"b" : 1.e-6}
The first one is obviously having a wrong numerical value. Also, 1.e-6 …
10
votes
Accepted
Wrong numerical value while exporting to a JSON string
See Szabolcs answer for the explanation. The number form there needs to be corrected because JSON needs a digit between . and e:
Therefore, here the solution:
System`Convert`JSONDump`toString[num …