[ 
https://issues.apache.org/jira/browse/SLING-6140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15625277#comment-15625277
 ] 

Konrad Windszus commented on SLING-6140:
----------------------------------------

DecimalFormat is a NumberFormat. The only question is how to create an 
instance. Either with the constructor or with 
{{NumberFormat.get*Instance(...)}}, compare with 
http://stackoverflow.com/questions/2296935/use-numberformat-or-decimalformat.

> Adding number formatting to Sightly/HTL
> ---------------------------------------
>
>                 Key: SLING-6140
>                 URL: https://issues.apache.org/jira/browse/SLING-6140
>             Project: Sling
>          Issue Type: New Feature
>          Components: Scripting
>            Reporter: Feike Visser
>
> Ability to properly format numbers in Sightly/HTL
> Proposed usages:
> {code}
> ${ 100 @ numberFormat = '9999.00' , locale = 'en_US'}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to