Search found 2 matches

by tim.hurring
Thu Sep 29, 2022 3:49 am
Forum: YAJL-ILE
Topic: JSON numbers in Scientific Notation
Replies: 6
Views: 9187

Re: JSON numbers in Scientific Notation

Thanks Scott for your prompt reply. This was all my problem. It turns out that the JSON data generated by YAJL was actually fine, it was the tool I was using to display the JSON data that was presenting the numeric value in scientific notation!
Thanks again!
by tim.hurring
Wed Sep 28, 2022 9:31 pm
Forum: YAJL-ILE
Topic: JSON numbers in Scientific Notation
Replies: 6
Views: 9187

JSON numbers in Scientific Notation

I've noticed that larger numbers are being generated in scientific notation by yajl_addNum
e.g. the number 25,122,332.47 is being generated as 2.512233247E7

This is causing a problem in the downstream system. Is there a way to avoid scientific notation, or increase the cutoff threshold?