ion-c icon indicating copy to clipboard operation
ion-c copied to clipboard

Add ion_decimal_is_signed to provide consistent negative zero behavior

Open tgregg opened this issue 3 years ago • 0 comments

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

tgregg avatar Jul 01 '21 17:07 tgregg