浏览代码

Merge pull request #17316 from ShyRed/significantdigits

Adjust decimal precision
Juan Linietsky 7 年之前
父节点
当前提交
cb1fc5734b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/ustring.cpp

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