Merge pull request #454 from Alanscut/float-compare

comparing double value with DBL_EPSILON
This commit is contained in:
Alan Wang
2020-04-02 20:09:42 +08:00
committed by GitHub
5 changed files with 20 additions and 9 deletions

View File

@ -137,11 +137,6 @@ typedef int cJSON_bool;
#define CJSON_NESTING_LIMIT 1000
#endif
/* Precision of double variables comparison */
#ifndef CJSON_DOUBLE_PRECISION
#define CJSON_DOUBLE_PRECISION .0000000000000001
#endif
/* returns the version of cJSON as a string */
CJSON_PUBLIC(const char*) cJSON_Version(void);