mirror of
https://github.com/godotengine/godot.git
synced 2025-03-26 00:16:37 +08:00
parent
bcac39551d
commit
cbcc0eacd5
@ -4144,7 +4144,7 @@ String String::sprintf(const Array &values, bool *error) const {
|
||||
|
||||
double value = values[value_index];
|
||||
bool is_negative = (value < 0);
|
||||
String str = String::num(abs(value), min_decimals);
|
||||
String str = String::num(ABS(value), min_decimals);
|
||||
|
||||
// Pad decimals out.
|
||||
str = str.pad_decimals(min_decimals);
|
||||
|
Loading…
x
Reference in New Issue
Block a user