limited accuracy of numbers in string comparisons

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@797744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2009-07-25 11:09:14 +00:00
parent 00589c9975
commit 48d014dac1
1 changed files with 3 additions and 3 deletions

View File

@ -100,12 +100,12 @@ public class MultivariateSummaryStatisticsTest extends TestCase {
"min: 1.0, 1.0\n" +
"max: 3.0, 3.0\n" +
"mean: 2.0, 2.0\n" +
"geometric mean: 1.8171205928321394, 1.8171205928321394\n" +
"geometric mean: 1.817..., 1.817...\n" +
"sum of squares: 14.0, 14.0\n" +
"sum of logarithms: 1.791759469228055, 1.791759469228055\n" +
"sum of logarithms: 1.791..., 1.791...\n" +
"standard deviation: 1.0, 1.0\n" +
"covariance: Array2DRowRealMatrix{{1.0,-1.0},{-1.0,1.0}}\n",
stats.toString());
stats.toString().replaceAll("([0-9]+\\.[0-9][0-9][0-9])[0-9]+", "$1..."));
Locale.setDefault(d);
}