[Zope] wrong value for integer variable?
Tony McDonald
tony.mcdonald@ncl.ac.uk
Thu, 29 Jul 1999 11:08:34 +0100
>
> > There's also atoi, which uses an arbitrary base...I tried to use it
>> so; and got an attribute error
>> <dtml-var "_.atoi('178')">
>> and
>> <dtml-var "_.atoi('178', 16)">
>> tone
>
>I think atoi comes from the string module.
>Maybe <dtml-var "_.string.atoi('178')"> works.
Quite right - my fault, <dtml-var "_.string.atoi('178')"> and
<dtml-var "_.string.atoi('178', 16)"> both work
thanks,
tone.
------
Dr Tony McDonald, FMCC, Networked Learning Environments Project
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2