-
Notifications
You must be signed in to change notification settings - Fork 32
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
Rational numbers #124
Comments
However, I think the most realistic option for now is to duplicate It might make sense to also open an issue on the Nim repo or an RFC on this. |
Could initRational be changed to |
It could if the stdlib would depend on |
Maybe it should be in stdlib 😉. But yeah maybe a submodule would be good, I'll try working on that. |
BigInt objects don't work with the rationals module, because initRational expects SomeInteger which BigInt isn't. Looking through the code for rationals, it looks like the only function it needs that bigints doesn't have is lcd. What would be the best way to go about using bigints with rational numbers? Could BigInt be marked as SomeInteger with some tweaking?
The text was updated successfully, but these errors were encountered: