mirror of
https://github.com/godotengine/godot.git
synced 2025-02-18 00:30:43 +00:00
Adjust decimal precision
Increase the number of significant digits when converting from double to string.
This commit is contained in:
parent
4f1b87265e
commit
051b4d6f19
@ -945,8 +945,8 @@ String String::num(double p_num, int p_decimals) {
|
|||||||
|
|
||||||
#ifndef NO_USE_STDLIB
|
#ifndef NO_USE_STDLIB
|
||||||
|
|
||||||
if (p_decimals > 12)
|
if (p_decimals > 16)
|
||||||
p_decimals = 12;
|
p_decimals = 16;
|
||||||
|
|
||||||
char fmt[7];
|
char fmt[7];
|
||||||
fmt[0] = '%';
|
fmt[0] = '%';
|
||||||
|
Loading…
Reference in New Issue
Block a user