mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 00:23:27 +00:00
Merge pull request #17316 from ShyRed/significantdigits
Adjust decimal precision
This commit is contained in:
commit
cb1fc5734b
@ -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] = '%';
|
||||
|
Loading…
Reference in New Issue
Block a user