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
julia> 128738872312*invmod(128738872312,9223372036854775783) 9223369465230597584 julia> ans < 9223372036854775783 true
The text was updated successfully, but these errors were encountered:
You are overflowing the invmod return value, which is an Int64. The following works good:
BigInt(128738872312)*invmod(128738872312,9223372036854775783)
so, this is no bug I guess :)
Sorry, something went wrong.
julia> Base.checked_mul(128738872312, invmod(128738872312,9223372036854775783)) ERROR: OverflowError() in checked_mul at int.jl:514
duplicate of #855
No branches or pull requests
The text was updated successfully, but these errors were encountered: