-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make mathematical operators and functions automatically cast string operands/arguments to numbers #45
Comments
I forgot to mention, yes, the error only occurs at |
What is even weirder is that it still works on my phone, but when it's in this code (it's on the bottom of the comment), it doesn't work on both devices (coord2Array[0] is a normal number). I tried running this code (on the phone) and tried these commands: Basically, it's like this:
Even if I am doing something wrong, the simple |
It might not seem immediately obvious, but 304 value0=coord2Array[0]:value1=coord2Array[1]
305 push value0%+sin(goAngle%);";";value1%+cos(goAngle%),snake At the moment, list items can't be casted to a number like |
+
operator automatically cast string operands to numbers
+
operator automatically cast string operands to numbers
For some reason I can't do arithmetic operations with array elements.
(
Type conversion error
)Example:
dim array:push 1,array:print array:print array[0]+1
The text was updated successfully, but these errors were encountered: