diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-05-07 20:25:06 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 20:25:06 -0300 |
commit | cb1fc5734b874f289ffb0d6b0b3035124f9498c8 (patch) | |
tree | 77eda33f5e85392ebfa0cc2b76c93fcde9dad5c3 /core | |
parent | 7b85c9d0ea8de12b501f101af7d9ecaa1ba1be7a (diff) | |
parent | 051b4d6f19a7121e28b463232f3d5cb7ec4b027e (diff) |
Merge pull request #17316 from ShyRed/significantdigits
Adjust decimal precision
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 921d20a6fd..85b7a16e6a 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] = '%'; |