Re: Number format error in free marker

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Saturday, December 12, 2009, 12:37:10 PM, Daniel Dekany wrote:

> Saturday, December 12, 2009, 1:19:58 AM, Kunal wrote:
>
>> Hi,
>>
>> I am doing some computation in freemarker. I am getting the the value from
>> the requestParameters. for eg. 
>>
>> [#if RequestParameters.offset??]
>>     [#assign offset = RequestParameters.offset?number]
>> [#else]
>>     [#assign offset = 0]
>> [/#if]
>>
>> this offset can grow up to a large value. However, FM adds a separator if it
>> goes beyond 999. 
>> So 1000 becomes 1,000.
>
> That could happen in the above code.
[snip]

I wanted to say: "That could NOT happen in the above code."

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.