This may not be exactly what you are asking, but it will do what you want. Use the java.text.DecimalFormat class and, as Scott Weaver suggested, put it in a pull tool.
I'd be interested in knowing if there was a more "Velocity-style" way of doing it, however. Jonathan Carlson [EMAIL PROTECTED] Dave Everson wrote: >Hi - > >Is there a way of formatting numeric values within Velocity? Ideally, I would like >printf type of functionality where you provide a mask (e.g. ###,###,###.00) and the >numeric value is reformatted using that mask. > >Is there something in Velocity that does this? If not, how does one go about >creating macros (?) to implement this type of functionality? > >Thanks, >Dave > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
