The title might confuse you! Don't worry, I have explained it here:
As an example, the convert() function should return 11.098 if I pass convert(11098,3). I am passing the convert(11098,2), so convert() should return 110.98.
Here, any integer number should be converted to a float by adding decimal points based on the given fractions. Based on fractions, it should add decimal points.
Is there any mathematical formula to convert this? I can implement them in my python code.