You can perform calculations with decimal fields by using FormCalc. However, if the Limit Trailing Digits option is deselected, and you want to use JavaScript to perform a calculation with decimal fields, you must use a script. To maintain a high degree of precision, LiveCycle Designer ES stores the value of decimal fields as a string. The script indicates to the decimal field that it is a number.
For example, you have three decimal fields in your form design. The first is named a, the second b, and the third Total. You want to perform a calculation that adds a and b.
a is the first decimal field.
b is the second decimal field.

To perform a calculation with decimal fields by using JavaScript