# Ratio between two sets of numbers?

I have two sets of numbers. The first set is 1 to 4. The second set is 0 to 190. What is the calculation to get the proportionate number in the second set if a number in the first set is, for example, 1.2? Math is not my forte!

-

## 1 Answer

It is $\displaystyle\frac{1.2-1}{4-1}\cdot (190-0) +0$.

-
Can you express that equation without the fraction? For a programming equation? –  user1342133 Sep 27 '12 at 23:19
If your input is $x$, then to go from $[1,4]$ to $[0,190]$, compute $(x-1)*190/3$. –  Théophile Sep 27 '12 at 23:32
That's it, thanks! –  user1342133 Sep 27 '12 at 23:37