; Float Example ; ------------- ; Float converts a value (or a string) to a floating point number. ; Its main use is forcing float arithmetic where Blitz would otherwise ; do whole-number integer division. Print "12/5 = "+(12/5)+" (integer division throws the fraction away)" Print "Float(12)/5 = "+(Float(12)/5) Print "" ; Applied to a string, Float converts as much of it as it can Print "Float of the string 3.25 = "+Float("3.25") Print "Float of the string 3junk = "+Float("3junk")+" (stops at the first non-numeric character)" Print "Float of the string junk3 = "+Float("junk3") Print "" Print "Press any key to close the example" WaitKey End