Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add comprehensive tests, finding a core algorithm bug.
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