Need help creating custom calculation script in Adobe Acrobat Pro


i creating fillable form college midterm grading rubric. have totals adding up, getting divided 15 (number of questions) give me average. then, have table corresponding percentages based on average score is. need create custom calculation script if/then situation. "if average score 1.9, percent 97%". however, when divide total 15 left number has many decimals. don't want have go in , type in every possible decimal point in order percentage calculations come out correctly. there way if/else if situation "if average between 1.7 , 1.79, percentage 91%"?

 

 

hopefully makes sense , thank in advance suggestions!

you have round result. can done using "format" option of "number" , specifying number of zeros. round up. force value of field rounded value using "util.printf" method. round up. can use math.ceil , math.floor methds not round go tot nest larger value or truncate value.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop