Remove Trailing Zeros in a Decimal from a Calculation
I have Number field in an Adobe Acrobat form that is a calculation of other entered number fields. In the Format tab, the decimal is set to one (1) decimal point (ie 27.5, 11.6, etc.). However, I’m wondering how to write a code to remove the ‘.#’ from the number value only when the decimal displays ‘.0’
Example:
236.0 should be listed as only 236
Since the value is always going to be different when the equation triggers, I can’t write to a specific variable. Thank you for your help.
