[Zope] Help!!! how to convert a 1.0 into 1
Dieter Maurer
dieter at handshake.de
Fri Sep 26 13:42:27 EDT 2003
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
More information about the Zope
mailing list