Skip to content
New issue

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

Add Int#to_big_i #3503

Closed
wants to merge 1 commit into from
Closed

Add Int#to_big_i #3503

wants to merge 1 commit into from

Conversation

Papierkorb
Copy link
Contributor

Was surprised to not find this method. Looks like it was just forgotten to add, as there's Float#to_big_i. Also mirrors the other #to_X methods.

@lbguilherme
Copy link
Contributor

But this method already exists, few lines above your patch.

require "big_int"
p 56.to_big_i

@Papierkorb
Copy link
Contributor Author

m( - Now I wonder why Crystal threw me a NoMethodError on #to_big_i while having required "big".

@Papierkorb Papierkorb closed this Nov 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants