Float returning 0?

BlitzMax Forums/BlitzMax Beginners Area/Float returning 0?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hmm, I know I must be doing something really stupid, here is my code:
Local number:Int = CountBlock()
Local percentage:Float = ( number / (COLUMNS*ROWS) ) *100


Now number is returning 55, (COLUMNS*ROWS) = 70 but percentage is equalling 0.0!?!?!

Where is the obvious error? ;-)
cheers