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

StdlibIntKit #23

Closed
oscbyspro opened this issue Jun 20, 2024 · 2 comments
Closed

StdlibIntKit #23

oscbyspro opened this issue Jun 20, 2024 · 2 comments
Labels
addition oh, so shiny!

Comments

@oscbyspro
Copy link
Owner

oscbyspro commented Jun 20, 2024

I want to test some ordinary Swift.BinaryInteger stuff. A StdlibInt<T> type would enable it. Swift.BinaryInteger is approximately a trapping Ultimathnum.FiniteInteger, so it should be simple to implement. The only thing I haven't covered yet is binary floating-point conversions, which I'll get to eventually.

@oscbyspro
Copy link
Owner Author

oscbyspro commented Jun 20, 2024

I might need two types since Swift does not have a notion of infinity. Alternatively, I could settle on a signed big integer type that wraps InfiniInt<IX>. That would cover most things I have in mind. Hm.

@oscbyspro oscbyspro added this to the Ultimathnum 0.6.0 milestone Jun 20, 2024
@oscbyspro
Copy link
Owner Author

oscbyspro commented Jun 21, 2024

I've settled on a big, signed, StdlibInt. It uses TextInt too because Swift does not have an arbitrary decoding method.

oscbyspro added a commit that referenced this issue Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition oh, so shiny!
Projects
None yet
Development

No branches or pull requests

1 participant