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

Add ion_decimal_is_signed to provide consistent negative zero behavior #252

Open
tgregg opened this issue Jul 1, 2021 · 0 comments
Open

Comments

@tgregg
Copy link
Contributor

tgregg commented Jul 1, 2021

ion_decimal_is_negative currently returns a different value for negative zero depending on whether it is represented with a decQuad or decNumber under the hood. In order to fix this, we should add ion_decimal_is_signed, which would call decQuadIsSigned for decQuad and decNumberIsNegative for decNumber. Then we should document ion_decimal_is_negative's subtly different behavior and deprecate it.

For more information, see #249

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

1 participant