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

Signed integers: Int64, Int128, Int256, Int512 #1710

Closed
webmaster128 opened this issue Jun 5, 2023 · 0 comments · Fixed by #1718
Closed

Signed integers: Int64, Int128, Int256, Int512 #1710

webmaster128 opened this issue Jun 5, 2023 · 0 comments · Fixed by #1718
Milestone

Comments

@webmaster128
Copy link
Member

Those types should

  • Use string serialization in JSON
  • Have the common signed integer range −2(n−1) to 2(n−1) − 1
  • Only have one zero

Implementation options are more or less those two paths:

  1. Use [u64; 8] or [i128; 4] and implement all the math ourselves
  2. Rely on i128, U256 and U512 (from uint) to implement math
This was referenced Jun 5, 2023
@webmaster128 webmaster128 added this to the 1.3.0 milestone Jun 21, 2023
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 a pull request may close this issue.

2 participants