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

About signed zero #215

Closed
usd-yamazaki opened this issue Feb 25, 2019 · 1 comment
Closed

About signed zero #215

usd-yamazaki opened this issue Feb 25, 2019 · 1 comment

Comments

@usd-yamazaki
Copy link

Is this correct?

var zero = new BN(0);
zero.toString();
> '0'
zero.subn(1).addn(1).toString();
> '-0'

I expect the following behavior.

var zero = new BN(0);
zero.toString();
> '0'
zero.subn(1).addn(1).toString();
> '0'
@fanatid
Copy link
Collaborator

fanatid commented Feb 25, 2019

fixed in #216

@fanatid fanatid closed this as completed Jul 7, 2019
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

2 participants