velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nat...@esha.com>
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
nathan@esha.com

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message