velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serge Matveenko <...@i-free.ru>
Subject String to int
Date Thu, 06 Jul 2006 13:46:22 GMT
Hello!
It might be that my question has been asked many times but i couldn't
find the answer:(

I need to convert 'String' object containing representation of the
number to 'int' value using only Velocity features.
Now i have only one solution: just write simple converting macros that
will compare each character of the string with all 10 digits.
Could somebody make it better?

-- 
Serge Matveenko
I-Free
+7 911 777 42 44
mailto:lig@i-free.ru
http://company.i-free.ru

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message