-
Notifications
You must be signed in to change notification settings - Fork 171
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
Support arbitrarily big numbers (Big...
)
#451
Comments
I agree with it. |
I think in the long term, the Goby (for reference, Goby does have a |
With that in mind, of course, I don't think that adding it straight away would hurt, but it would need to be carefully designed to make sure it would change as little as possible in the future (if it would be chosen not to wait for it to be needed and to have clearer requirements). |
@saveriomiroddi @hachi8833 I think this is worth working, but it's priority should be low until we've reached certain version (like |
Just a memorandum. I remember » a = "9999999999999999999999999999999999999999999999000000000000000000000000".to_d
#» 9999999999999999999999999999999999999999999999000000000000000000000000
» a.fraction
#» 9999999999999999999999999999999999999999999999000000000000000000000000/1 I wonder how to convert |
Closing this issue because Big numbers are supported by the |
Goby currently does support strictly integer representations (up to 64 bit), but not arbitrarily big numbers (typically called
BigNum
/BigInt
...).@st0012 if you don't have any very specific ideas about the implementation, I can implement Big numbers with a transparent Goby Integer interface - like Ruby 2.4 does, where an Integer is always exposed to the user, and transparently changed behind the scenes when required.
The text was updated successfully, but these errors were encountered: