Floating point numbers in data statements

BlitzMax Forums/BlitzMax Beginners Area/Floating point numbers in data statements

Rico(Posted 2010) [#1]
Hi i often use data statements at the end of my program to hold data like sprite location etc. just now i wanted to store floating point values in this manner but it says DefData staements can't be used with floating point values. how can i get round this? thank you :)


Oddball(Posted 2010) [#2]
Use strings and cast them to floats?


Rico(Posted 2010) [#3]
ok thats a good idea thank you Oddball :)


Rico(Posted 2010) [#4]
that worked great thank you, it said in the documentation that the data statements are old-style BASIC ones. i was wondering how would i store this kind of data now?. do you have to use files for everything?