Adobe acrobat Form cannot capture "0" while using split() command
Hi,
I am trying to split a number (with 2 decimalsplace ) and separate them in before decimal and after decimal.
Example:
. Text1 : I have number say 25.68 , now i want it to split into two fields so,
Text2 : it should show 25
Text3 : it should show 68 ,
everything is working fine.. until when the number after decimal is 00 then it doesnot show correct value;
below is my script
for Text2 calculation script :
var mins = this.getField("Text1").valueAsString;
event.value = mins.split(".")[0]
for Text3
var mins = this.getField("Text1").valueAsString;
event.value = mins.split(".")[1]
is there any other method to split the number where when the number has 00 in its decimal capture the 0 in Text3 .
