-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Labels
Milestone
Description
Currently JSON number is printed with upto 15 decimal places (e.g. 21.379983333333332) most of the time such long number is not needed and is a wastage of space in embedded system. Can we have a provision where in we can pass number of decimal places needed.
for instance:
cJSON_CreateNumber(double num, int digits)
This will save lot of space when complete decimal number is not needed.
Reactions are currently unavailable