The first number in the ratio goes in the numerator of the fraction. The second number goes in the denominator. Essentially, you replace the "to" or ":" with a division bar.
... 4 to 5 = 4/5
... 4 : 5 = 4/5
6.5m questions
8.7m answers