Thanks, I just knew it could be done like that. I hadn't heard of the floor division operator, though - the book I'm using must be getting old.