Skip to content

Commit

Permalink
Add comprehensive tests, finding a core algorithm bug.
Browse files Browse the repository at this point in the history
d2fixed(1e-13, 95)
  Actual: "0.00000000000009999900000000000303737455634003709136034716842278413651001756079494953155517578125"
Expected: "0.00000000000010000000000000000303737455634003709136034716842278413651001756079494953155517578125"

d2exp(1e-13, 82)
  Actual: "9.9999000000000003037374556340037091360347168422784136510017560794949531555175781250e-14"
Expected: "1.0000000000000000303737455634003709136034716842278413651001756079494953155517578125e-13"

d2fixed(1e-27, 138)
  Actual: "0.000000000000000000000000000000000000000000038494869749191839081371989361591338301396127643500357819184021224145908490754663944244384765625"
Expected: "0.000000000000000000000000001000000000000000038494869749191839081371989361591338301396127643500357819184021224145908490754663944244384765625"

d2exp(1e-27, 111)
  Actual: "3.849486974919183908137198936159133830139612764350035781918402122414590849075466394424438476562500000000000000000e-44"
Expected: "1.000000000000000038494869749191839081371989361591338301396127643500357819184021224145908490754663944244384765625e-27"
  • Loading branch information
StephanTLavavej authored and ulfjack committed Dec 17, 2018
1 parent d26d5de commit 388280c
Showing 1 changed file with 7,051 additions and 1 deletion.
Loading

0 comments on commit 388280c

Please sign in to comment.