Originally Posted by
awsdert
Also now that I've looked at it a bit more you're version relies on integers bigger than a float, as you may have guessed I will be attempting long doubles later so I'd like to use a version that does not rely on larger integers because that opens up the problem of what to do when there is no such integers, while I can program array type integers I still struggle with the division part which would be essential at the top of your function, I would also need to program a log10 etc variant for those array integers, all that still excludes the possibility of not enough memory anyway.