These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Division and Formcalc

liztapanes
Registered: Jun 13 2007
Posts: 40

I want to obtain a dollar amount by doing the following using formcalc in Livescript:

$0.00 / Percentage = Total

anyone?

Right now it looks like this:

(SubFormHR.Hrs * SubFormHR.TableReimb.Row1.ReimbPercent)

and I know it's not right because it's multiplying. But when I use / I get an error

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You can not divide by zero. So you have to add a test to avoid dividing by zero.

George Kaiser

liztapanes
Registered: Jun 13 2007
Posts: 40
I am not dividing by zero. The total is calculated into the first cell. The percentage is filled in by the form user.
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
If I am not mistaken "$0.00 / Percentage = Total" is division. Also the value you are setting the result for should be on the left side of the set operator. There is a Scripting Reference as part of LiveCycle Desinger Help.

Also until 'Percentage' is calclulated its value is null or zero.

George Kaiser