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

bn sub incorrect result #411

Open
guidovranken opened this issue Feb 20, 2020 · 0 comments
Open

bn sub incorrect result #411

guidovranken opened this issue Feb 20, 2020 · 0 comments

Comments

@guidovranken
Copy link

{
    var bn1 = new sjcl.bn("12c");
    var bn2 = new sjcl.bn("c623c5a01658c5eacfc91f2305b3ec");
    console.log(bn1.sub(bn2).toString());
}

Expected result:

0x-c623c5a01658c5eacfc91f2305b2c0

Actual result:

0x-c623c65fe9a73a153036e0dcfa4d40
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