Replies: 1 comment 3 replies
-
I'm also new to V language, but here is how I'm doing it until I discover a better way. If you parse the string with num := "50"
inum := num.parse_int(10, 64) or {
println(err)
return
}
println("$num = $inum") |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am new to this programming language. I tried searching in vlang docs, trying to find how to check if string is a interger.
For example:
it should print "is int"
Beta Was this translation helpful? Give feedback.
All reactions