Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Display/Hide Decimal

$
0
0

Good Morning,

 

This seems very simple, but I can't figure it out:

 

I have a numeric field that I need a user to enter a number. This number can be either whole or a decimal with 2 trailing values after the decimal point. For example:

1

1.15

1.30   etc.

 

I need the field to display the whole number if there is no decimal value, but if there is a decimal value then I need the field to always display 2 numbers after the decimal. I have gotten the field to show the first two examples above, but in the 3rd example (1.30), the field wants to drop the "0". I need to keep the two places displayed (1.30).

 

any ideas?

 

thanks!!!!

 

Gene-O


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>