Expand my Community achievements bar.

Question pertaining to formcalc

Avatar

Level 1

I apologize if this is in the wrong section.  I just started playing with Adobe Livecycle so I'm very green.   I've been reading manuals, trying out "sample code" and searching everywhere for a resolution to no avail.  Basically what I'm trying accomplish is I have a form which runs several simple equations, the format for which I have easily figured out.  What I'm trying to do is after the equation I need it to round to the 100th's place decimal.  My first line looks like this (input1 - input2) / input3.  The result goes to Output1.    I need to output1 to reflect as XXX.XX and from what I've read using the round function i would do Round(n1, n2).  Can someone please show me how to link the two together?  Thanks in advance for your help.

1 Reply

Avatar

Level 10

Hi,

the formula could look like:

if (Input1 ne null and Input2 ne null and Input3 ne null) then

     Round(Sum(Input1, Input2) / Input3, 2)

endif

To display the results always like 123.45 use the pattern:

     num{z,zzz,zz9.99}