- Edited
For a pathfinding algorithm I am implementing in Godot, I need to calculate logarithms with different bases. I tried using the built-in "log()" function, but instead of allowing me to pass the base and value of the logarithm only takes the value of the logarithm as input. It doesn't even use 10 as the base of the logarithm. If that was the case, I could manually use the change-of-base algorithm (which is: logB( X ) = log10( X ) / log10( B ) see this site for more information) but, the "log()" function finds the natural logarithm instead. This should definitely be fixed, but in the meantime does anyone know how I can fix this?