1 Reply Latest reply on Apr 26, 2013 8:21 AM by gkaiseril

    Decimal Condition

    Gdaimon Level 1

      as I can do so that when entering a decimal number three note that if the third decimal is greater than 5 add 1 and then rounded the second decimal


      36,546 = 36,55 +0.01  =  36.56


      36,544 = 36,54

        • 1. Re: Decimal Condition
          gkaiseril MVP & Adobe Community Professional

          I think you want to "round" a decimal value.


          The "Format" tab has a setting for the number of decimals to display. If you want to set the underlying value to the rounded value than you need to use JavaScript and use either the "Math.round" method or the 'util.printf" method. Since this will most likely be a many times you might want to consider creating a document level function for this task.