Next float?

Robert Kern robert.kern at gmail.com
Thu Nov 22 01:44:34 EST 2007


Steven D'Aprano wrote:
> Is there a simple, elegant way in Python to get the next float from a 
> given one? By "next float", I mean given a float x, I want the smallest 
> float larger than x.

Heh:

  http://mail.python.org/pipermail/python-list/2005-December/357771.html

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the Python-list mailing list