a14n / dart-rational

Apache License 2.0
35 stars 20 forks source link

BigInt.toDouble() calculates incorrectly #14

Closed ilikerobots closed 8 years ago

ilikerobots commented 8 years ago

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 commented 8 years ago

Thanks for catching this !

a14n commented 8 years ago

fixed by #15

a14n commented 8 years ago

version 0.1.9 published