On Fri, Sep 19, 2014 at 3:16 AM, Alexander Belopolsky <alexander.belopolsky@gmail.com> wrote:

The standards are influenced by the limitation inherent in many languages where ints have finite range and cannot represent floor() of many finite floating point values. Python does not have this limitation. (Granted - PEP 3141 could do a better job explaining why floor, ceil, round, //, etc. should return Integer rather than Real.)

Indeed. FWIW, I think it was a mistake to change the return type of math.floor and math.ceil in Python 3. There's no longer any way to spell the simple, fast, float->float floor operation. It would be nice to have those basic floating-point math operations accessible again.

--

Mark