On Thu, May 25, 2000 at 07:44:44PM +0200, [EMAIL PROTECTED] wrote:
> 
> int() works fine (truncating everything behind "."):
> 
> >>> t.timeTime() == 953146937.0
> 0
> >>> t.timeTime() -  953146937.0
> -4.76837158203e-07                  
> >>> int (round (t.timeTime()))
> 953146937                                                                       
> 

Thank you, that was illuminating. Keep forgetting that floats are not
always what they are printed to be.

------------------------------------------------------
Andres Corrada-Emmanuel   Email: [EMAIL PROTECTED]
------------------------------------------------------

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to