[Zope] Weird interaction between int() and DateTime.timeTime
Chris Withers
chrisw@nipltd.com
Thu, 25 May 2000 18:48:51 +0100
"Jeff K. Hoffman" wrote:
> Python 1.5.2 (#3, Mar 8 2000, 16:34:52) [C] on sunos5
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>>
> >>> f = 1.999999999999
> >>> f
> 2.0
> >>> int(f)
> 1
> >>>
> the int() function takes a different code path and returns 1, correctly.
Forgive my ignorance, but in what way is 1 correct here? Surely 2 is the
what should be returned?!
Chris