2 Replies Latest reply on Oct 17, 2012 1:38 AM by JaySusith82

    Hide Decimal places if they are 0

    Gerhard8

      Hi,

       

      is it possible to hide the decimal places if they are 0?

       

      For Example, if the number is "123.00" I want to display "123" in the decimal field and if it is "123.45" it should show "123.45".

       

      Regards

       

      Gerhard

        • 1. Re: Hide Decimal places if they are 0
          radzmar Adobe Community Professional & MVP

          Hi,

           

          this is possible with a numeric pattern using the 8 picture clause symbol.

          num{zzzzzzzz9.88}
          
          • 2. Re: Hide Decimal places if they are 0
            JaySusith82

            Hi,

             

            Stumbled upon this thread via a google search.  I'm looking for an answer to the exact opposite of the question Gerhard8 has raised.

             

            I've entered a decimal field in the PDF I'm creating via Livecycle.  When previewing it a value entered as "123.00" is automatically converted into "123" when the user exits out of the field.  I don't want it to do that.  I want "123.00" to stay as "123.00". 

             

            Is there a particular numeric pattern used to achieve that?

             

            Many thanks

             

            Susith