diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-28 01:27:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 01:27:34 +0200 |
commit | a6916d1f179f760f015f385c01729d205af97abe (patch) | |
tree | 50d664500e5ce164ed8498f34e84aef35678f225 /core/math | |
parent | 932b75e2477dd97775b5b29639c514e091a83cf2 (diff) | |
parent | 56e2c6c7043ca14159284b7b1f07e95d6fcf9a9e (diff) |
Merge pull request #40678 from aaronfranke/string-float64
Make all String float conversion methods be 64-bit
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/expression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/expression.cpp b/core/math/expression.cpp index 13a49feb6b..735a30f6cc 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -1062,7 +1062,7 @@ Error Expression::_get_token(Token &r_token) { r_token.type = TK_CONSTANT; if (is_float) { - r_token.value = num.to_double(); + r_token.value = num.to_float(); } else { r_token.value = num.to_int(); } |