Home
last modified time | relevance | path

Searched refs:randomDouble (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatRoundTripTest.java86 public double randomDouble(double range) { in randomDouble() method in NumberFormatRoundTripTest
113 _test(fmt, randomDouble(1)); in _test()
115 _test(fmt, randomDouble(10000)); in _test()
117 _test(fmt, Math.floor((randomDouble(10000)))); in _test()
119 _test(fmt, randomDouble(1e50)); in _test()
121 _test(fmt, randomDouble(1e-50)); in _test()
123 _test(fmt, randomDouble(1e100)); in _test()
125 _test(fmt, randomDouble(1e75)); in _test()
127 _test(fmt, randomDouble(1e308) / ((DecimalFormat) fmt).getMultiplier()); in _test()
129 _test(fmt, randomDouble(1e75) / ((DecimalFormat) fmt).getMultiplier()); in _test()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatRoundTripTest.java87 public double randomDouble(double range) { in randomDouble() method in NumberFormatRoundTripTest
114 _test(fmt, randomDouble(1)); in _test()
116 _test(fmt, randomDouble(10000)); in _test()
118 _test(fmt, Math.floor((randomDouble(10000)))); in _test()
120 _test(fmt, randomDouble(1e50)); in _test()
122 _test(fmt, randomDouble(1e-50)); in _test()
124 _test(fmt, randomDouble(1e100)); in _test()
126 _test(fmt, randomDouble(1e75)); in _test()
128 _test(fmt, randomDouble(1e308) / ((DecimalFormat) fmt).getMultiplier()); in _test()
130 _test(fmt, randomDouble(1e75) / ((DecimalFormat) fmt).getMultiplier()); in _test()
[all …]
/external/icu/icu4c/source/test/intltest/
Dnmfmtrt.cpp81 NumberFormatRoundTripTest::randomDouble(double range) in randomDouble() function in NumberFormatRoundTripTest
167 test(fmt, randomDouble(1)); in test()
168 test(fmt, randomDouble(10000)); in test()
169 test(fmt, uprv_floor((randomDouble(10000)))); in test()
170 test(fmt, randomDouble(1e50)); in test()
171 test(fmt, randomDouble(1e-50)); in test()
173 test(fmt, randomDouble(1e100)); in test()
175 test(fmt, randomDouble(1e75)); in test()
192 test(fmt, randomDouble(DBL_MAX/2.0) / df->getMultiplier()); in test()
194 test(fmt, randomDouble(1e75) / df->getMultiplier()); in test()
[all …]
Dwinnmtst.cpp82 static double randomDouble(void) in randomDouble() function
235 double d = randomDouble(); in testLocale()
Dnmfmtrt.h45 static double randomDouble(double range);
/external/guava/guava-tests/benchmark/com/google/common/math/
DDoubleMathRoundingBenchmark.java21 import static com.google.common.math.MathBenchmarking.randomDouble;
47 doubleInIntRange[i] = randomDouble(Integer.SIZE - 2); in setUp()
48 doubleInLongRange[i] = randomDouble(Long.SIZE - 2); in setUp()
DDoubleMathBenchmark.java22 import static com.google.common.math.MathBenchmarking.randomDouble;
42 doubles[i] = randomDouble(Long.SIZE); in setUp()
/external/guava/guava-tests/test/com/google/common/math/
DMathBenchmarking.java109 static double randomDouble(int maxExponent) { in randomDouble() method in MathBenchmarking
123 return Math.exp(randomDouble(6)); in randomPositiveDouble()