1. A float is a number with a floating decimal point, for example, 3.14159265358 (an approximation of pi, from my head). Floats can be 34E +/-38. To use a float variable you can do:
variable as float
variable = 000.0000
or
Floats can only have 7 digits and whole numbers are more important, so it will cut the decimal off. In the example above, pi,only 3.141592 would be displayed. Example:
a# = 1234.567
b# = 123456.78
Print a#,b#
Wait key
a# will print as 1234.567, but b# will print as 123456.7 (the 8 got cut off)
2. Floats are used instead of whole numbers, or integers, to do more presise calculations, fractions, 3D coordinates, and more.
"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!