Expand my Community achievements bar.

multiplying to a power

Avatar

Former Community Member

what is the script to multiply something by a power, is it just ^n

so if i have something in () that I want to x by a power, would it be

(x+x)^n

9 Replies

Avatar

Former Community Member

In Javascript you woudl use the built in Math functions so the command would be:

Math.pow(a,b)

When a is the number and b is the power you want to raise it to.

Paul

Avatar

Former Community Member

This is the calculation that I have:

(1+(Table3.Row1.NumericField43/100)^Table3.Row1.Table4.Row1.NumericField46 -1)*100

This is the exponent number in that calculation: Table3.Row1.Table4.Row1.NumericField46

I'm confused how to add your formula into that calc?

Avatar

Former Community Member

So it woudl be:

1 + Math.pow((Table3.Row1.NumericField43/100), (Table3.Row1.Table4.Row1.NumericField46 -1))*100

If I understand your formula correctly

Paul

Avatar

Former Community Member

Ok, so I changed the box that I have that on to a calculate script and javascript. The other 2 fields that it pulls from I changed to javascript.

But the box with the script below doesn't display anything when numbers are put in the other 2 boxes. The rest of the form is set up in formCalc, is that the problem?

Avatar

Former Community Member

No that is not the problem ....each event can have its own script in whatever langage that you want but you cannot mix languages within the same event.

My guess is that there is still a problem with the formula ....can you email the form to LiveCycle8@gmail.com and I will have a look.

Paul

Avatar

Former Community Member

Just send you an email with the form to LiveCycle8@gmail.com

Can't we attach things to the forum any more?

Avatar

Former Community Member

The attachments to the forum are temporarily turned off.

The address was LiveCycle8@gmail.com not gmai.com

Paul

Avatar

Former Community Member

Ok great, I sent it there, let me know if you didn't get it.

Thanks again

Avatar

Former Community Member

can you make numeric fields grow in height?  I can't get mine to grow.  I want to have a pattern like this:  xx,xxx,xxx and have it grow in height

can you only do that for text boxes?