We utilize a non conventional way of rounding and I would like to format the calculated fields in my form to this rounding method:
Example: 0.45 rounds to 0.4
0.35 rounds to 0.4
It's called "Odd to Even" rounding. If the place being rounded (tenths place) has a five in the hundredths place and the number in the tenths place is even it rounds down and if the number in the tenths place is odd it rounds up.
Any help would be greatly appreciated. Thanks!
You'll need to write your own rounding function, and custom calculation scripts. Do you have any programming experience?
Not really. I have just begun delving into pdf programming this month. I've done a few things like auto imputing a future date and basic custom calculation. I'm learning as I go.
The rounding function should be a document script, so it's defined once and accessible to all other scripts in the PDF.
Did you want the actual value of the field to be rounded? or just how the value is displayed? This is important if the value is used in other calculations.
I'd like the displayed value to be rounded not the actual value because it is used in other calculations.
Glad you got all the pieces together. The custom format script is often overlooked.