From 051b4d6f19a7121e28b463232f3d5cb7ec4b027e Mon Sep 17 00:00:00 2001 From: ShyRed Date: Tue, 6 Mar 2018 20:40:29 +0100 Subject: Adjust decimal precision Increase the number of significant digits when converting from double to string. --- core/ustring.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/ustring.cpp b/core/ustring.cpp index a7a7810837..3a4015dbfb 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -945,8 +945,8 @@ String String::num(double p_num, int p_decimals) { #ifndef NO_USE_STDLIB - if (p_decimals > 12) - p_decimals = 12; + if (p_decimals > 16) + p_decimals = 16; char fmt[7]; fmt[0] = '%'; -- cgit v1.2.3