Noobie having bad time with Blitz Tutorials!

Blitz3D Forums/Blitz3D Beginners Area/Noobie having bad time with Blitz Tutorials!

No, strings cannot be used to store numbers as such. Numbers in strings will be made up of characters.

103="1"+"0"+"3"="103"

It's no longer a number, but a string. You can convert this into a number though. Like so:

a$="100"
number=a$


number will equal 100. But

a$="10r5"
number=a$


number will equal 10. This is because it converts the string into a number until it reaches a non numeric character. So it stops at "r".

Hope that helps some :)