29 Jul
1999
29 Jul
'99
10:08 a.m.
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