# Math Help - [SOLVED] help re-writing this formula to find &quot;h&quot;

1. ## [SOLVED] help re-writing this formula to find &quot;h&quot;

Hello,

This is what I have now:

20.83=(h/600)*100
or
p= (h/s)*100

So h is 125 in this case, however in my code I'll have something like this:

Code:
var p=20.83;
var s=Stage.height;

var h=....

I need the formula to find h, I am using this to calculate the correct height of different page elements on a liquid display web page.

thanx

2. Originally Posted by codemaster
20.83=(h/600)*100

I need the formula to find h....
First note that 100/600 = 1/6, so your equation simplifies immediately to "20.83 = h/6".

Then multiply through by 6.

3. thanks, but what i need is to change this

p= (h/s)*100

to

h=

p and s are variables...

4. never mind got it:

h=(s*p)/100