-
Notifications
You must be signed in to change notification settings - Fork 334
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
SignedDecimal implementation #1807
Conversation
Adding this to 1.4 for visibility, but would not consider it a hard release blocker. If we can get it in, great. |
7fdf484
to
aea5e42
Compare
Looks very good
I think it's fine to not have that. Square root of negative numbers only work in complex math. I think users can be asked to convert to unsigned first and ensure errors are handles in that step. |
d2fe1d6
to
01ee3ac
Compare
01ee3ac
to
458468e
Compare
0f6ba5b
to
dfccc52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a CHANGELOG entry here and then merge 🚀
b555368
to
f8d5d8e
Compare
closes #1711
Needs #1870 to work
Current status: Both
SignedDecimal
andSignedDecimal256
are finishedDecimal
):from_str
,saturating_{add, sub, mul, pow}
,to_int_{floor, ceil}
trunc
andto_int_trunc
sqrt
, as we don't have it for the signed ints atm and it would have to return aResult
in case of negative numbers