Live Forms Latest - This documentation is for Live Forms 9.0. Not for you? Earlier documentation is available too.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Method 1: Use the built-in toFixed(n) function to truncate the result to n number of decimal places as shown in the rule below:


Code Block
var x;
x = (testone.value + testtwo.value + testthree.value + testfour.value + testfive.value + testsix.value);
LineTotal.value = x.toFixed(2);

Method 2: You can also round numbers using the round function in the Visual Rule Builder in the format:

Code Block
round(num, decimal digitsdecimalDigits)

Method 3: Another approach would be to assign Patterns that limit the number of decimal places.