diff --git a/src/Core/Environment.php b/src/Core/Environment.php index 771008c..b54b410 100644 --- a/src/Core/Environment.php +++ b/src/Core/Environment.php @@ -158,7 +158,7 @@ public function lookupVariable(string $name): RuntimeValue public static function convertToRuntimeValues(mixed $input): RuntimeValue { if (is_numeric($input)) { - return new NumericValue($input); + return new NumericValue(floatval($input)); } if (is_string($input)) {