I need to divide 1 by the number X of more than 4000 digits that I saved in the string, and obviously this will return a floating point number. I am looking for algorithms to effectively perform this separation, but I could not find anything that convinced me.
As a note, I would like to implement the algorithm myself, without using a third-party library.
Does anyone have an idea?
Thanks!
EDIT : The reason why I do not want to use a third-party library, I want me to perform this operation using openCL, but without losing too high accuracy in this process. Therefore, the use of one of these libraries is actually impossible in this case.
source share