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

[WIP] fix misbehavior with trailing decimals #182

Closed
wants to merge 2 commits into from

Conversation

biojppm
Copy link

@biojppm biojppm commented Oct 12, 2020

This PR is meant to fix #181 . Not sure on the right way to go about it, so would be glad to have some early feedback.

@biojppm biojppm marked this pull request as draft October 12, 2020 17:21
This changeset makes some of the earlier failing tests now succeed.
But it triggers an assertion in s2d() and other newer tests fail.
@ulfjack
Copy link
Owner

ulfjack commented Oct 15, 2020

Hmm, I'm not sure about this. It's definitely a problem if the code returns SUCCESS but an incorrect result. That part must be fixed.

I was hoping to expand the code to handle arbitrary-length inputs (and that is not a small change). Handling a few additional (unnecessary) trailing zeros is nice to have, but I'm tempted to say that we should implement the arbitrary-length input case instead. Except for my lack of time.

@biojppm biojppm closed this Dec 5, 2020
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

Successfully merging this pull request may close these issues.

s2f() and s2d() fail with trailing decimal zeros
2 participants