Float returning 0?
BlitzMax Forums/BlitzMax Beginners Area/Float returning 0?| 
 | ||
| Hmm, I know I must be doing something really stupid, here is my code: Now number is returning 55, (COLUMNS*ROWS) = 70 but percentage is equalling 0.0!?!?! Where is the obvious error? ;-) cheers | 
| 
 | ||
| Use type casting: p:Float = (float(number) / (columns*rows))*100 | 
| 
 | ||
| excellent - thanks |