diff options
author | ShyRed <ShyRed@users.noreply.github.com> | 2018-03-06 20:40:29 +0100 |
---|---|---|
committer | ShyRed <ShyRed@users.noreply.github.com> | 2018-03-06 20:40:29 +0100 |
commit | 051b4d6f19a7121e28b463232f3d5cb7ec4b027e (patch) | |
tree | 846b6f84829d502762bd1699e9fe1a2bf5858c37 /core | |
parent | 4f1b87265e1e74b1fdd0aa0aa59a9daf03fd3f40 (diff) |
Adjust decimal precision
Increase the number of significant digits when converting from double to string.
Diffstat (limited to 'core')
-rw-r--r-- | core/ustring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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] = '%'; |