You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Marco Janc (JIRA)" <ji...@apache.org> on 2015/11/28 18:49:10 UTC

[jira] [Created] (FREEMARKER-13) Negate as built in for numbers

Marco Janc created FREEMARKER-13:
------------------------------------

             Summary: Negate as built in for numbers
                 Key: FREEMARKER-13
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-13
             Project: Apache Freemarker
          Issue Type: Improvement
          Components: engine
            Reporter: Marco Janc
            Priority: Minor


In some cases in domain object numbers are stored as positive but have negative meaning when displaying.

I have a BigDecimal `depositReturn` and I tried to use negate() in markup which is not working.

${depositReturn.negate()?string.currency}



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