Re: Integer problem in Freemarker
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Wednesday, November 18, 2009, 11:01:52 AM, falke2009 wrote:
> Hi,
>
> i am trying to render a form with struts and freemarker. My Problem is if my
> variable is an Integer then i see it in float format (maybe string) like
> 12,001. It should be actually 120001. I have tried something with ?number
> etc. but i cannot find any solution.
That's actually not a decimal point what you see there. That's
grouping, like in 1,000,000 (one million, also note that it's comma,
not dot). You certainly should write ${theNumber?c} to prevent that.
See more here:
http://freemarker.org/docs/app_faq.html#faq_number_grouping
> thanks in advance
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july