Hi wonder if anyone can help, I'm creating a PDF form with javascript calculation but wits not rounding to 2 decimal places, any ideas?
(function () {
// Get the field values, as numbers
var v1 = +getField("ANNUAL_MILEAGE").value;
var v2 = +getField("MILES_PER_GALLON").value;
if (v1 !== 0) {
event.value = Number(v1) / Number(v2).toFixed(0);
} else {
event.value = "";
}
})();