[Zope] Help!!! how to convert a 1.0 into 1

Bernd Dorn zope-mailinglist at mopa.at
Thu Sep 25 14:06:06 EDT 2003


Alexander Alvarado wrote:

> Im conecting to a dabtabase and it is returning a 1.0, when i try to 
> compare it an maipulate it gives a lot of errors, like ODBC: type does 
> not match, DTML: invalid literal for int():  etc etc
> 
> Can you please help me
> 
> _________________________________________________________________
> Charla con tus amigos en línea mediante MSN Messenger: 
> http://messenger.yupimsn.com/
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )

this seems to be a float

if in x is the return value try:

newx = float(x)





More information about the Zope mailing list