From 4cd6491bc26937473a6a81b52809f6fe1cdcb5ee Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 1 Jan 2013 13:42:07 +0000 Subject: [PATCH] Core: FormatDouble precision increased to 16 digits git-svn-id: svn://ultimatepp.org/upp/trunk@5694 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/Format.cpp b/uppsrc/Core/Format.cpp index 8696f5ab8..d44ca187d 100644 --- a/uppsrc/Core/Format.cpp +++ b/uppsrc/Core/Format.cpp @@ -171,7 +171,7 @@ String Format64Hex(uint64 a) String FormatInteger(int a) { return IsNull(a) ? String() : FormatInt(a); } String FormatUnsigned(unsigned long a) { return Sprintf("%u", a); } -String FormatDouble(double a) { return IsNull(a) ? String() : IsNaN(a) ? "?" : FormatDouble(a, 10, FD_REL); } +String FormatDouble(double a) { return IsNull(a) ? String() : IsNaN(a) ? "?" : FormatDouble(a, 17, FD_REL); } String FormatBool(bool a) { return a ? "true" : "false"; } String FormatPtr(const void *p) { return "0x" + FormatHex(p); }