We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to use InfiniteMath.log with a number over 1e+308, for example 1e+1000, will error.
The function uses math.log(10^second, Base) to calculate second, but this results in a number over 1e+308.
The text was updated successfully, but these errors were encountered:
This issue has been fixed. The old implementation of log was math.log(first, Base) + math.log(10^second, Base).
Doing 10^second will obviously go over the float limit, which causes INF.
The new implementation is math.log(first, Base) + second * math.log(10, Base)
This little work around gives the same result mathematically but doesn't cause second to go over 10^308.
Sorry, something went wrong.
No branches or pull requests
Attempting to use InfiniteMath.log with a number over 1e+308, for example 1e+1000, will error.
The function uses math.log(10^second, Base) to calculate second, but this results in a number over 1e+308.
The text was updated successfully, but these errors were encountered: