2 Replies Latest reply on Jan 17, 2013 1:52 PM by demon_candy

    Custom Script for Creating an Average / Drop the Decimal

    demon_candy

      Hello everyone,

       

      I am relatively new to the realm of creating Javascripts for Acrobat, and I was trying to create a custom calculation that does the following:

       

      I have 7 fields - R1 through R7.  I want the calculation to find the average of the numbers that a user enters in each field.  The tricky part is that I want to drop the decimal place of the final average, instead of having it rounded.

       

      I have been able to create the Average in the Simple Calculation menu, and setting the decimal places to "0" in the Format menu, however it still rounds the decimal places instead of removing them.

       

      If anyone could provide me any suggestions or ideas on how to start creating a function for finding an average and removing the decimal places it would be greatly appreciated.  Thanks!