Yeah, that's what I want to do, but I don't know how to add bits on to the string. Like I load in 0.224 as a float for the program to work with, but I want to display for the user the actual real-world co-ordinate. So I want to add on 79300 to 0.224.
If I do this and store it in a float, I get 79300.22656. I don't know why.
I tried to do a work around like so: (this also displays my problem quite nicely)
`make a double float which should hold more info
global num as double float
x#=0.224
sync on
do
`first up, show the problem just using a float
text 0,0,str$(x#+79300,5)
num=x#+79300
text 0,15,str$(num,5)
text 0,30,str$(x#,5)
if x#<1
string$="7930"+str$(x#,5)
else
string$="gablalalbla I don't know what to do with x#"
endif
text 0,45,string$
sync
loop
But I'm sure there must be an easier way to do arithmetic calculations on strings. I mean, my method only works insofar as the variable x#<1. My program has x# values that range between about -700 and 700... so obviously I need a better way of doing this!