Merge pull request #17316 from ShyRed/significantdigits

Adjust decimal precision
This commit is contained in:
Juan Linietsky 2018-05-07 20:25:06 -03:00 committed by GitHub
commit cb1fc5734b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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] = '%';