Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Jul 16, 2021

There is no negative zero in the decimal system, so we must suppress
the sign.

There is no negative zero in the decimal system, so we must suppress
the sign.
@cmb69 cmb69 added the Bug label Jul 16, 2021
Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was on the fence about this, but after seeing that bcmath explicitly converts a "-0" input to "0" in

if (bc_is_zero (*num))
(*num)->n_sign = PLUS;
it makes sense to me to do the same for output as well.

@cmb69 cmb69 closed this in bcb89c7 Jul 16, 2021
@cmb69 cmb69 deleted the cmb/78238 branch July 16, 2021 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants