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

Oils integers should be arbitrary precision (OSH and YSH) #2112

Open
andychu opened this issue Oct 28, 2024 · 2 comments
Open

Oils integers should be arbitrary precision (OSH and YSH) #2112

andychu opened this issue Oct 28, 2024 · 2 comments

Comments

@andychu
Copy link
Contributor

andychu commented Oct 28, 2024

related to

@ale5000-git
Copy link

Are you sure "arbitrary precision" won't cause problems? (like floating-point)
Isn't 64-bit (long long) enough?

I have seen one implementation where when using printf on this "9223372036854775807" instead of requested number it display this: 9223372036854775808
and when using printf on this "18446744073709551615" instead of requested number it display this: 1.84467e+19

I hope this change doesn't cause this.

@andychu
Copy link
Contributor Author

andychu commented Oct 29, 2024

I mean like CPython -- the integers can be as large as you want, but also exact

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

No branches or pull requests

2 participants