int to string

BlitzMax Forums/BlitzMax Programming/int to string

wildboar(Posted 2005) [#1]
Okay, this should be basic stuff, but I can't find it anywhere...

something like this:

score%=100
a$="The score is "+str$(score)


wildboar(Posted 2005) [#2]
Okay, apparently you can concatenate an int with a string without conversion:

Local lv$="level_"+level+".txt"


rdodson41(Posted 2005) [#3]
to convert any type to another type do something like mytype(myvar) so it would be

score%=100
a$="The score is "+String(score)


ImaginaryHuman(Posted 2005) [#4]
Yeah str$ is obsolete because you can use String() to convert to a string, more in keeping with how you use Int() or Float() etc.