Re: Formatting in extended theme using Freemarker

2009-09-12 Thread musomesa
Try the pattern "#.00". Chris -Original Message- From: ashwin ala To: user@struts.apache.org Sent: Sat, Sep 12, 2009 2:30 pm Subject: RE: Formatting in extended theme using Freemarker Thank you for the prompt replies. The BigDecimal rounding some

RE: Formatting in extended theme using Freemarker

2009-09-12 Thread ashwin ala
Thank you for the prompt replies. The BigDecimal rounding somehow always renders the value with extra zeroes appended. I had some success with the freemarker number formatting as suggested by Martin and am getting close to solving this. I changed text.ftl to now use this line: <#if parameters.nameV

RE: Formatting in extended theme using Freemarker

2009-09-12 Thread Martin Gainty
did you try formatting your variable as string.currency? <#assign x=123.35> ${x?string.currency} http://freemarker.sourceforge.net/docs/ref_builtins_number.html other solutions? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de

Re: Formatting in extended theme using Freemarker

2009-09-12 Thread Paweł Wielgus
Hi, bigdecimal knows its own rounding, can't You use it? Also You can write your own bigdecimal converter, but it think it won't be necessary in this case. Best greetings, Pawel Wielgus. 2009/9/12, ashwin ala : > We currently display BigDecimal values in tags in our jsps. > These values need to