Calculation with round up
hi, I'm using bellow script. my issue is if i do calculation separately with round up, result is not same. so i want edit my script get roundup total like bellow.
event.value = (this.getField("Tax").value / 100) * this.getField("M0").value;
event.value = (event.value <= 0)?"":event.value;
"Tax" field - 8.25%
"M0" = (J0 +K0 +L0)
so i want to do calculation like bellow.
(J0 * 8.25/100) = Result round up to two decimal places
(K0 * 8.25/100) = Result round up to two decimal places
(K0 * 8.25/100) = Result round up to two decimal places
And get total off above all 3 values.
Hope my explanation is clear & some can help me. thanks..
