Next float?

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Thu Nov 22 01:54:52 EST 2007


On Thu, 22 Nov 2007 00:44:34 -0600, Robert Kern wrote:

> 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

Damn, I don't remember writing that!

:-/



-- 
Steven.



More information about the Python-list mailing list