Troubles with converting string to integer #24722
Unanswered
MijiGamin1
asked this question in
Questions and Answers
Replies: 1 comment 1 reply
-
then you try to assign an int value to it. just do |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I am very new to V, and am attempting to create a V program to take an input, turn it into an integer, and then use that integer in a for loop. Here is my code:
However, on attempting to run this code, I get this error:
From what I understand, the error arises from .int() attempting to turn an integer into an integer. However, there's also an error about the same variable being a string and not working in the for loop, so I'm very confused. Any and all help would be appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions