velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <>
Subject Re: Conversion Problem.
Date Wed, 21 Jan 2004 16:45:42 GMT
Will Glass-Husain said:
> surely you're joking.  Velocity's [comparison operators are] pretty strict 
> about types, actually.  Try
> comparing a String to an  integer, or a String to a StringBuffer.  It just
> silently fails.

true, with a slight adjustment.  :)

> I've a tool in the context to do this kind of conversion
> $Lib.integer
> with method overloading to take a String, double, or Object.

sounds like what the MathTool does :)
also, we have a NumberTool now that can handle i18n of numbers.

Nathan Bubna

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message