I was searching around for libraries that do these kind of calculations but I got lost, for example I searched for gmplib, I downloaded it but couldn't understand how to use it, I would just like to have a simple cpp and header file which does these kind of calculations not a huge library.
But assuming that someone has done this work, there has to be some kind of algorithm that was used.
I'm thinking of creating my own class, but I'm not sure how to start.
can someone provide me with some help? I'm totally confused
PS: I want to use these calculations in order to find out PI, there are plenty algorithms online about this, but can't figure out how to make calculations with large decimals.