sercantutar / infint

Arbitrary-Precision Integer Arithmetic
http://sercantutar.github.io/infint/
198 stars 48 forks source link

No log base N function #12

Open GitBingo opened 7 years ago

GitBingo commented 7 years ago

A simple log base N function could something similar to the below

log(InfInt num, int base) { return num.numberOfDigits() / ceil(log10(base)); }

melvyniandrag commented 6 years ago

There are tips for implementing this operation here: https://stackoverflow.com/questions/8232932/logarithm-of-the-very-very-large-number