Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MJPA/SimpleJSON.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Anchor <git@mjpa.co.uk>2012-05-26 18:28:04 +0400
committerMike Anchor <git@mjpa.co.uk>2012-05-26 18:28:04 +0400
commitd25146e0ef9b26081079484f9a5dec8c4d25a55d (patch)
tree9b24292bfab7d695406acd31f0fd361c78ab423a /src
parent8fb7fd07a918166e1d2ba0baaf75ab32f2061ba2 (diff)
Extra precision in Stringify() for decimal numbers.
Diffstat (limited to 'src')
-rw-r--r--src/JSONValue.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/JSONValue.cpp b/src/JSONValue.cpp
index 258fe65..52537eb 100644
--- a/src/JSONValue.cpp
+++ b/src/JSONValue.cpp
@@ -582,6 +582,7 @@ std::wstring JSONValue::Stringify() const
else
{
std::wstringstream ss;
+ ss.precision(15);
ss << number_value;
ret_string = ss.str();
}