[ https://issues.apache.org/jira/browse/SLING-6140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15625272#comment-15625272 ]
Konrad Windszus commented on SLING-6140: ---------------------------------------- There should also be support for formatting currencies. Probably worth a dedicated plugin (https://docs.oracle.com/javase/tutorial/i18n/format/numberFormat.html). It must also accept the parameter locale and currency (if some other currency should be given out that the locale's default one). Probably in most of the cases the {{NumberFormat}} objects being returned by {{NumberFormat.get*Instance(...)}} should be used as those represent the default formats for the given locale. > 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)