Convert String to Float
BlitzMax Forums/BlitzMax Programming/Convert String to Float
| ||
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. |
| ||
local number:float = float(mystring) |
| ||
Local myStr:String="123.239" Local num:Float num=myStr.ToFloat() Print num |
| ||
thank you! i think I really need a good documentation for blitzmax :-) |