Copy link to clipboard
Copied
I have a fillable PDF with java running calculations to give me sales commissions, and I cannot figure out how to get it to stop rounding dollars up (e.g., I want $75.50 and not $76.00). All the fields are set to two decimal places, and the code also specifies two. I did not write this code; someone did it for me because I am not familiar with java. So I need a solution, if possible, that does not involve writing new code. Any help will be greatly appreciated!
Copy link to clipboard
Copied
What script does you use?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
It is difficult to see the equation work if you don't provide the values that are on each field that leads to a total of $76.00.
Would you mind posting the values that you are currently using in FIXED9, COMMISION9, PERCENT9 and MRC9 respectively?
I don't see clearly what is Math.round doing to the total of that equation as it also includes roubding in the line of code outlined below for
field MRC9 total value: