Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
Issue #38 #39 #40 add some exact FP numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Galbreath committed Sep 23, 2016
1 parent 390d7be commit f0511a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/modp_numtoa_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ static char* testDoubleToA(void)
double frac[] = {0.0, 0.1, 0.2, 0.3, 0.4, 0.49, 0.5, 0.51, 0.6, 0.7,
0.9, 0.01, 0.25, 0.125, 0.03, 0.0625, 0.0078125,
0.001, 0.00001, 0.99, 0.999, 0.9999, 0.99999, 0.999999,
0.875, 0.9375, 0.96875, 0.9921875,
// 0.95, 0.995, 0.9995, 0.99995, 0.999995, 0.9999995,
0.09, 0.099, 0.0999, 0.09999, 0.099999, 0.0999999,
0.09999999
Expand Down Expand Up @@ -284,8 +285,9 @@ static char* testDoubleToA2(void)
double wholes[] = {0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,
67.0,101.0, 10000, 99999};
double frac[] = {0.0, 0.1, 0.2, 0.3, 0.4, 0.49, 0.5, 0.51, 0.6, 0.7,
0.9, 0.01, 0.25, 0.125, 0.05, 0.005, 0.0005, 0.00005,
0.9, 0.01, 0.25, 0.125, 0.03, 0.0625, 0.0078125,
0.001, 0.00001, 0.99, 0.999, 0.9999, 0.99999, 0.999999,
0.875, 0.9375, 0.96875, 0.9921875,
0.09, 0.099, 0.0999, 0.09999, 0.099999, 0.0999999,
0.09999999
};
Expand Down

0 comments on commit f0511a9

Please sign in to comment.