how to force float math
BlitzMax Forums/BlitzMax Beginners Area/how to force float math| 
 | ||
| I know you have to force float math when you have a int and a float but I can't remember how to do this. can someone help. local a:int local b:float a=10 b=a/20 notify b in this example it notifies 0.00000000 thanks CTP | 
| 
 | ||
| you could say b=a/20.0 or b=float(a)/20.0 | 
| 
 | ||
| yes thank you. that was so simple, but I could not remember how to do it. | 
| 
 | ||
| or b=float(a)/20 should also give a float result I think |