Given a fraction (103993/33102), I need to find 50000 digits after the decimal point for this fraction.
Initially I used setprecision(k)
in C++, but it gives only 17 digits after decimal point. I also tried
sprintf (str, "%.500000f", num)
but the result is the same.
I need an algorithm that can solve this and which does not round off the digits after the decimal point i.e., it should be precise.