Lines Matching defs:fmt
94 public void doTest(NumberFormat fmt) {
95 doTest(fmt, Double.NaN);
96 doTest(fmt, Double.POSITIVE_INFINITY);
97 doTest(fmt, Double.NEGATIVE_INFINITY);
99 doTest(fmt, 500);
100 doTest(fmt, 0);
101 doTest(fmt, 5555555555555555L);
102 doTest(fmt, 55555555555555555L);
103 doTest(fmt, 9223372036854775807L);
104 doTest(fmt, 9223372036854775808.0);
105 doTest(fmt, -9223372036854775808L);
106 doTest(fmt, -9223372036854775809.0);
109 doTest(fmt, randomDouble(1));
110 doTest(fmt, randomDouble(10000));
111 doTest(fmt, Math.floor(randomDouble(10000)));
112 doTest(fmt, randomDouble(1e50));
113 doTest(fmt, randomDouble(1e-50));
114 doTest(fmt, randomDouble(1e100));
118 doTest(fmt, randomDouble(1e306));
119 doTest(fmt, randomDouble(1e-323));
120 doTest(fmt, randomDouble(1e-100));
132 public void doTest(NumberFormat fmt, double value) {
133 doTest(fmt, Double.valueOf(value));
136 public void doTest(NumberFormat fmt, long value) {
137 doTest(fmt, Long.valueOf(value));
147 public void doTest(NumberFormat fmt, Number value) {
148 fmt.setMaximumFractionDigits(Integer.MAX_VALUE);
149 String s = fmt.format(value), s2 = null;
154 n = fmt.parse(s);
156 s2 = fmt.format(n);
161 if (fmt instanceof DecimalFormat) {
163 ((DecimalFormat)fmt).setParseBigDecimal(true);
164 n = fmt.parse(s);
166 s2 = fmt.format(n);
168 ((DecimalFormat)fmt).setParseBigDecimal(false);