comparing double value with DBL_EPSILON

This commit is contained in:
Alanscut
2020-04-02 16:02:24 +08:00
parent 3ece4c893c
commit 8943c73345
4 changed files with 17 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);