diff options
author | kobewi <kobewi4e@gmail.com> | 2024-03-26 17:04:14 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-10-23 15:00:21 +0200 |
commit | 5c0f2414cd6d988a4eab93fc21bc3b80388907e8 (patch) | |
tree | 05d11ea1b6d97b2cb8e2e203dba1ffb89dc70eb5 /core/variant | |
parent | 533c616cb86ff7bb940d58ffbbcc1a3eca0aa33d (diff) | |
download | redot-engine-5c0f2414cd6d988a4eab93fc21bc3b80388907e8.tar.gz |
Always add decimal when printing float
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp index e2865a06be..7550477d70 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -1736,7 +1736,7 @@ String Variant::stringify(int recursion_count) const { case INT: return itos(_data._int); case FLOAT: - return rtos(_data._float); + return String::num_real(_data._float, true); case STRING: return *reinterpret_cast<const String *>(_data._mem); case VECTOR2: |