"Michael P. Reilly" <arcege at shore.net> writes: > Floor does funny things to negative numbers. > >>> int(floor(-3.4)) > -4 > >>> int(floor(-4.5)) > -5 In both cases, int(floor(x)) is giving you the greatest integer that is not greater than x. How is this funny? -Justin