Re: formating numeric string from variable
JoHages <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Old topic but I thought I would throw in my two cents.
I was receiving the same error messages for "Expecting a number here, found:
...". The solution it seems for me was to put an IF statement to check if
the variable has content.
<#if attribute.value?has_content>
${attribute.value?number?round}
</#if>
--
View this message in context: http://freemarker.624813.n4.nabble.com/formating-numeric-string-from-variable-tp1012376p4654114.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/