[ https://issues.apache.org/jira/browse/SLING-6140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15569130#comment-15569130 ]
Julian Sedding commented on SLING-6140: --------------------------------------- I would suggest using the patterns documented in [{{DecimalFormat}}|https://docs.oracle.com/javase/8/docs/api/java/text/DecimalFormat.html] rather than re-inventing the wheel. Saves implementation and most of all document effort. > 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' } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)