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

BigInt.toDouble() calculates incorrectly #14

Closed
ilikerobots opened this issue Jun 10, 2016 · 3 comments
Closed

BigInt.toDouble() calculates incorrectly #14

ilikerobots opened this issue Jun 10, 2016 · 3 comments
Milestone

Comments

@ilikerobots
Copy link
Contributor

The BigInt toDouble() method is not calculating the nearest double correctly. Example:
expect(BigInt.parse("1").toDouble(), equals(1.0));
provides

Expected: <1.0>
  Actual: <2.0>
@a14n
Copy link
Owner

a14n commented Jun 10, 2016

Thanks for catching this !

@a14n
Copy link
Owner

a14n commented Jun 10, 2016

fixed by #15

@a14n a14n closed this as completed Jun 10, 2016
@a14n a14n added this to the 0.1.9 milestone Jun 10, 2016
@a14n
Copy link
Owner

a14n commented Jun 10, 2016

version 0.1.9 published

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