Let me start by stating I know NOTHING about programming or what I am trying to do.
The editor I am using is Foxit Phantom PDF.
I am trying to utilize Javescript in a PDF form to perform simple calculations, dollars and cents. When adding all is good. Subtracting is another story, the result is a number with 14 positions after the decimal point. How do I restrict the result to 2 decimal points? The image is what I am using to create the calculations.

The editor I am using is Foxit Phantom PDF.
I am trying to utilize Javescript in a PDF form to perform simple calculations, dollars and cents. When adding all is good. Subtracting is another story, the result is a number with 14 positions after the decimal point. How do I restrict the result to 2 decimal points? The image is what I am using to create the calculations.
