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
Big*
U/Int128
It would be useful to allow converting a BigInt (and other Big objects) into a U/Int128. This is already possible for all other primitive integers:
BigInt
Big
BigFloat.new("1").to_u64 #=> 1 BigFloat.new("1").to_u128 #=> undefined method 'to_u128' for BigFloat BigInt.new("1").to_i128! #=> undefined method 'to_i128!' for BigInt
The text was updated successfully, but these errors were encountered:
Int::Primitive
Successfully merging a pull request may close this issue.
Feature Request
It would be useful to allow converting a
BigInt
(and otherBig
objects) into a U/Int128.This is already possible for all other primitive integers:
The text was updated successfully, but these errors were encountered: