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

Error in posit subtraction #10

Open
Mark1626 opened this issue Apr 9, 2024 · 0 comments
Open

Error in posit subtraction #10

Mark1626 opened this issue Apr 9, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Mark1626
Copy link
Collaborator

Mark1626 commented Apr 9, 2024

There is an issue in posit subtraction that causes the following to returns an incorrect result. Issue is most likely due to incorrect regime bit being created

nbits - 32
es - 2
7.000091552734375 - 7.00

Reproducing

This can be reproduced by the adding the following unit test to PositAddSpec.scala

it should "return posit" in {
    posit_add_test(32, 2, 1442843648, 1442840576, 2101346304, sub=true)
}
@Mark1626 Mark1626 added bug Something isn't working help wanted Extra attention is needed labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant