From 56e2c6c7043ca14159284b7b1f07e95d6fcf9a9e Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Fri, 24 Jul 2020 14:07:57 -0400 Subject: Make all String float conversion methods be 64-bit --- core/math/expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/math') 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(); } -- cgit v1.2.3