I want to convert a string like "0.75" into 3/4. Do python has any builtin function for this.
I know i can convert it using float("0.75") to get a float value. But I need only integer number without loosing resolution.
I can write a function like multiplying it by 100, so I will get 75/100, but still how to evaulate to 3/4. Any idea would be much appreciated.