that’s great. if I was to reverse the equation is it possible to bring a result back displayed as a fraction? im still trying to work out the formula to return the correct fraction, i have a guide below, but i just want to check that a fraction can be returned as a result.
The guide I’m following is below.
Converting decimal odds to fractional odds
It’s all about multiplying the decimal odds until you manage to get rid of both decimal places. We will reverse engineer the examples above to explain this fully.
We have already established that 9/4 fractional odds is 3.25 in decimal. To prove this, we would have to do the following sum, whilst remembering that we need to eliminate the decimal places.
3.25 – Decimal places exist. Therefore, we add 3.25 on again.
3.25 + 3.25 = 7.50 – Decimal places exist. Therefore, we add 3.25 on again.
3.25 + 3.25 + 3.25 = 9.75 – Decimal places exist. Therefore, we add 3.25 on again.
3.25 + 3.25 + 3.25 + 3.25 = 13.00 – Decimal places now gone! First part done.
Now that we have a number with no decimal places, we can work out the fraction. As you can see, we had to multiply 3.25 four times in order to eliminate the decimal places. So, we deduct four from thirteen – this being the sum of adding 3.25 together four times.
13 – 4 = 9
The fractional odds would then be the result of the sum directly above this sentence – 9 – over the number of times the decimal was multiplied – 4.
9/4`
-
This reply was modified 3 years, 11 months ago by
ryansvfx.