is there any standard library function to convert decimals to fractions, for example if the input is 3.14159265 the output = 22/7 ?
thanks!