I didn't know where you were running the code from, so I assumed it was in the target event field.. that is why I am using event.value in the absence of a declared variable.
But If the total value is the result of a calculation that is not performed in the target event field and "Input" is another text field object, then declare your variable for the field named "Input" like:
var Input = this.getField("Input").value/10;
event.value = parseInt(Input, 10);
Yay! Thank you so much!
Just so I understand whata's happening:
(1) We chnage the string variable "Input" into a numeric value with Get.this
(2) We then used the new numeric value to obtain the truncated vallue.
Yeah.. In BASIC, I would have made the inout variable a numberic value, but in the script in Acrobat (because it is placed in a calculation field based on a non-numeric input field), I had to convert AND do thew math.
Yeah! I get that.
Thank yu again!