Explorar o código

Adjust decimal precision

Increase the number of significant digits when converting from double to string.
ShyRed %!s(int64=7) %!d(string=hai) anos
pai
achega
051b4d6f19
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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] = '%';