by a reciprocal i mean like this:

2/1 = 1/2
.25 = 4/1
3/2 = 2/3
etc.

and Sunnyl:
that code woun't always work like if its .25, it will not give 4/1 or 4