Convert String to Float

BlitzMax Forums/BlitzMax Programming/Convert String to Float

maverick69(Posted 2005) [#1]
Local MyString:String = "123.239"
Local Number:Float = 0


How can I convert the string above to a float variable. Using Casting I only get the numers before the point.


boomboommax(Posted 2005) [#2]
local number:float = float(mystring)


Robert(Posted 2005) [#3]
Local myStr:String="123.239"

Local num:Float

num=myStr.ToFloat()

Print num



maverick69(Posted 2005) [#4]
thank you!

i think I really need a good documentation for blitzmax :-)