[ https://issues.apache.org/jira/browse/SLING-6140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15625215#comment-15625215 ]
Feike Visser edited comment on SLING-6140 at 11/1/16 11:47 AM: --------------------------------------------------------------- Had a look at https://docs.oracle.com/javase/7/docs/api/java/text/NumberFormat.html, this also has support for Locales. DecimalFormat as suggested by [~jsedding] looks still as the best option. was (Author: fvisser): Had a look at https://docs.oracle.com/javase/7/docs/api/java/text/NumberFormat.html, this also has support for Locales > 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)