floor() function definition

Volucris volucris at hotmail.com
Tue May 15 20:29:53 EDT 2001

"Dev_NuLL" <dev_null at email.com> wrote in message
news:ecf3gtsghs0u64u2u63k8n4nmn4r6m30ab at 4ax.com...
> What does floor() do?
> This is all I get from the python web site:
> floor (x)
> Return the floor of x as a real.
> Doesn't help much if you don't know what floor means!

returns the closest integer(but still a float) lower than the value

>>> import math
>>> math.floor(8.5)
>>> math.floor(-8.5)

More information about the Python-list mailing list