Expand my Community achievements bar.

Hide Decimal places if they are 0

Avatar

Level 1

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

2 Replies

Avatar

Level 10

Hi,

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

num{zzzzzzzz9.88}

Avatar

Level 1

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