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/
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@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)
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
Give the specific exception type, value and traceback and we may be able to help... Chris
Alexander Alvarado wrote at 2003-9-25 17:08 +0000:
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
Apparently, "1.0" is a string. Therefore, you cannot directly convert it into an int. You can go the following route '1.0' -- float -- 1.0 -- int -- 1 Dieter
participants (4)
-
Alexander Alvarado -
Bernd Dorn -
Chris Withers -
Dieter Maurer