diff options
author | Darryl L. Miles <darryl.miles@darrylmiles.org> | 2013-02-10 09:02:00 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-12 22:33:19 +0200 |
commit | 6348de873724fc613446c46b5accfabab7afaaea (patch) | |
tree | 00501a4ce17df716b7d4ef583ad68f5b76e8bfae /src/corelib/json/qjson_p.h | |
parent | e2d614b6a9e88c90331e3de9bb339a2ed609ea95 (diff) |
Json writer, emit full precision for floating point Number types
Previously Qt JSON writer would only emit 6 digits of precision as this
is the default with the formatter.
However with testing against NodeJS JSON.stringify() this behavior is
inconsistent with the defacto standard JSON implementation and conveys
a loss of precision.
Change-Id: Ie1845a6e0ee0b4c05f63ec0062f372e891855f0b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/json/qjson_p.h')
-rw-r--r-- | src/corelib/json/qjson_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/json/qjson_p.h b/src/corelib/json/qjson_p.h index 8d6735273c..96a11cd40e 100644 --- a/src/corelib/json/qjson_p.h +++ b/src/corelib/json/qjson_p.h @@ -63,6 +63,7 @@ #include <qnumeric.h> #include <limits.h> +#include <limits> QT_BEGIN_NAMESPACE |