I need help rounding a field up to the nearest 10,000
i have form created in excel , created in adobe. 1 of fields needs calculated rounding annual salary (another calculated field) nearest $10,000. i'm not familiar java script, haven't been able find right type of code put in place.
any appreciated.
thank you!!! jaci
you can use code custom calculation script of field:
var salary = number(this.getfield("annual salary").value); event.value = roundupto(salary, 10000); function roundupto(n, target) { if (n%target==0) return n; return n+(target-(n%target)); }
More discussions in PDF Forms
adobe
Comments
Post a Comment