cJSON
cJSON copied to clipboard
Add API for adding number with fix decimal places
In reference to discussion at issue #175
Implementation tested with newlib and newlib-nano.
Could this PR be merged?
Could this PR be merged?
I just pushed PR again with rebase.
I just pushed PR again with rebase.
Thank you for doing that! Hopefully, this PR can be merged now.
Could this PR be merged?
So , why not merge yet ? Everything seem ok
Doesn't this only affect printing new numbers? I tried to utilize your changes in a program and it works great when printing once, but if you were to parse the json again and then print again, the decimal places you originally specified with cJSON_AddNumberWithPrecisionToObject
won't be preserved.
So your changes here will only be affective when printing a cJSON
object once?