check if object is number
Fredrik Lundh
fredrik at pythonware.com
Wed Feb 16 03:24:18 EST 2005
Steven Bethard wrote:
>> Actually no, floats don't meet this behaviour or more specifically
>> floats don't guarantee this behaviour. It depends of course on
>> your implementation of f, but it is possible with floats to keep
>> incrementing and never reach a maximum.
>
> My code won't hit this corner case. I'm incrementing with integers.
incrementing what with integers?
>>> f = 9007199254740992.0
>>> f == f+1
True
</F>
More information about the Python-list
mailing list