OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:UNNECESSARY
(Results
1 - 25
of
26
) sorted by null
1
2
/libcore/luni/src/main/java/java/math/
RoundingMode.java
82
UNNECESSARY
(BigDecimal.ROUND_UNNECESSARY);
115
return
UNNECESSARY
;
BigDecimal.java
99
* @see RoundingMode#
UNNECESSARY
370
*
UNNECESSARY
} and the new big decimal cannot be represented
408
*
UNNECESSARY
} and the new big decimal cannot be represented
440
*
UNNECESSARY
} and the new big decimal cannot be represented
534
*
UNNECESSARY
} and the new big decimal cannot be represented
558
*
UNNECESSARY
} and the new big decimal cannot be represented
592
*
UNNECESSARY
} and the new big decimal cannot be represented
624
*
UNNECESSARY
} and the new big decimal cannot be represented
654
*
UNNECESSARY
} and the new big decimal cannot be represented
810
// Cases where it's
unnecessary
to add two numbers with very different scale
[
all
...]
/libcore/luni/src/test/java/tests/api/java/math/
RoundingModeTest.java
35
assertEquals("valueOf failed for ROUND_UNNECESSARY", RoundingMode.valueOf(BigDecimal.ROUND_UNNECESSARY), RoundingMode.
UNNECESSARY
);
/external/guava/guava/src/com/google/common/math/
IntMath.java
71
* @throws ArithmeticException if {@code mode} is {@link RoundingMode#
UNNECESSARY
} and {@code x}
79
case
UNNECESSARY
:
112
* @throws ArithmeticException if {@code mode} is {@link RoundingMode#
UNNECESSARY
} and {@code x}
122
case
UNNECESSARY
:
202
* @throws ArithmeticException if {@code mode} is {@link RoundingMode#
UNNECESSARY
} and
211
case
UNNECESSARY
:
244
* @throws ArithmeticException if {@code q == 0}, or if {@code mode ==
UNNECESSARY
} and {@code a}
271
case
UNNECESSARY
:
BigIntegerMath.java
63
* @throws ArithmeticException if {@code mode} is {@link RoundingMode#
UNNECESSARY
} and {@code x}
71
case
UNNECESSARY
:
122
* @throws ArithmeticException if {@code mode} is {@link RoundingMode#
UNNECESSARY
} and {@code x}
151
case
UNNECESSARY
:
178
* @throws ArithmeticException if {@code mode} is {@link RoundingMode#
UNNECESSARY
} and
189
case
UNNECESSARY
:
263
* @throws ArithmeticException if {@code q == 0}, or if {@code mode ==
UNNECESSARY
} and {@code a}
LongMath.java
68
* @throws ArithmeticException if {@code mode} is {@link RoundingMode#
UNNECESSARY
} and {@code x}
75
case
UNNECESSARY
:
108
* @throws ArithmeticException if {@code mode} is {@link RoundingMode#
UNNECESSARY
} and {@code x}
120
case
UNNECESSARY
:
239
* @throws ArithmeticException if {@code mode} is {@link RoundingMode#
UNNECESSARY
} and
250
case
UNNECESSARY
:
292
* @throws ArithmeticException if {@code q == 0}, or if {@code mode ==
UNNECESSARY
} and {@code a}
315
case
UNNECESSARY
:
DoubleMath.java
55
case
UNNECESSARY
:
108
* {@link RoundingMode#
UNNECESSARY
}
131
* {@link RoundingMode#
UNNECESSARY
}
155
* {@link RoundingMode#
UNNECESSARY
}
221
case
UNNECESSARY
:
/libcore/luni/src/test/java/libcore/java/math/
OldBigDecimalCompareTest.java
47
mc = new MathContext(34, RoundingMode.
UNNECESSARY
);
50
fail("No ArithmeticException for RoundingMode.
UNNECESSARY
");
OldBigDecimalArithmeticTest.java
44
mc = new MathContext(33, RoundingMode.
UNNECESSARY
);
67
mc = new MathContext(33, RoundingMode.
UNNECESSARY
);
142
mc = new MathContext(2, RoundingMode.
UNNECESSARY
);
152
mc = new MathContext(4, RoundingMode.
UNNECESSARY
);
175
mc = new MathContext(4, RoundingMode.
UNNECESSARY
);
210
fail("ArithmeticException is not thrown for RoundingMode.
UNNECESSARY
");
235
fail("ArithmeticException is not thrown for RoundingMode.
UNNECESSARY
");
256
mc = new MathContext(13, RoundingMode.
UNNECESSARY
);
262
mc = new MathContext(33, RoundingMode.
UNNECESSARY
);
267
fail("ArithmeticException is not thrown for RoundingMode.
UNNECESSARY
");
[
all
...]
OldBigDecimalConstructorsTest.java
96
mc = new MathContext(34, RoundingMode.
UNNECESSARY
);
99
fail("No ArithmeticException for RoundingMode.
UNNECESSARY
");
105
fail("No ArithmeticException for RoundingMode.
UNNECESSARY
");
183
mc = new MathContext(34, RoundingMode.
UNNECESSARY
);
186
fail("No ArithmeticException for RoundingMode.
UNNECESSARY
");
192
fail("No ArithmeticException for RoundingMode.
UNNECESSARY
");
243
mc = new MathContext(34, RoundingMode.
UNNECESSARY
);
246
fail("No ArithmeticException for RoundingMode.
UNNECESSARY
");
252
fail("No ArithmeticException for RoundingMode.
UNNECESSARY
");
352
mc = new MathContext(34, RoundingMode.
UNNECESSARY
);
[
all
...]
OldBigDecimalTest.java
176
// testing rounding Mode RoundingMode.
UNNECESSARY
178
setScale1.setScale(3, RoundingMode.
UNNECESSARY
);
179
fail("arithmetic Exception not caught for round
unnecessary
");
/external/guava/guava-tests/test/com/google/common/math/
DoubleMathTest.java
32
import static java.math.RoundingMode.
UNNECESSARY
;
108
BigDecimal expected = new BigDecimal(d).setScale(0,
UNNECESSARY
);
113
assertEquals(expected.intValue(), DoubleMath.roundToInt(d,
UNNECESSARY
));
124
DoubleMath.roundToInt(d,
UNNECESSARY
);
188
// every mode except
UNNECESSARY
189
BigDecimal expected = new BigDecimal(d).setScale(0,
UNNECESSARY
);
194
assertEquals(expected.longValue(), DoubleMath.roundToLong(d,
UNNECESSARY
));
205
DoubleMath.roundToLong(d,
UNNECESSARY
);
253
BigDecimal expected = new BigDecimal(d).setScale(0,
UNNECESSARY
);
254
assertEquals(expected.toBigInteger(), DoubleMath.roundToBigInteger(d,
UNNECESSARY
));
[
all
...]
IntMathTest.java
28
import static java.math.RoundingMode.
UNNECESSARY
;
119
// Relies on the correctness of BigIntegrerMath.log2 for all modes except
UNNECESSARY
.
136
assertEquals(x, 1 << IntMath.log2(x,
UNNECESSARY
));
166
// Relies on the correctness of BigIntegerMath.log10 for all modes except
UNNECESSARY
.
184
assertEquals(floor, IntMath.log10(x,
UNNECESSARY
));
220
/* Relies on the correctness of BigIntegerMath.sqrt for all modes except
UNNECESSARY
. */
241
assertEquals(floor, IntMath.sqrt(x,
UNNECESSARY
));
278
assertEquals(p + "/" + q, p, IntMath.divide(p, q,
UNNECESSARY
) * q);
BigIntegerMathTest.java
35
import static java.math.RoundingMode.
UNNECESSARY
;
113
assertEquals(x, ZERO.setBit(BigIntegerMath.log2(x,
UNNECESSARY
)));
200
assertEquals(logFloor, BigIntegerMath.log10(x,
UNNECESSARY
));
294
assertEquals(floor, BigIntegerMath.sqrt(x,
UNNECESSARY
));
361
assertEquals(p, BigIntegerMath.divide(p, q,
UNNECESSARY
).multiply(q));
LongMathTest.java
31
import static java.math.RoundingMode.
UNNECESSARY
;
159
/* Relies on the correctness of BigIntegerMath.log2 for all modes except
UNNECESSARY
. */
175
assertEquals(x, 1L << LongMath.log2(x,
UNNECESSARY
));
203
// Relies on the correctness of BigIntegerMath.log10 for all modes except
UNNECESSARY
.
218
assertEquals(floor, LongMath.log10(x,
UNNECESSARY
));
244
// Relies on the correctness of BigIntegerMath.sqrt for all modes except
UNNECESSARY
.
262
assertEquals(logFloor, LongMath.sqrt(x,
UNNECESSARY
));
298
assertEquals(p, LongMath.divide(p, q,
UNNECESSARY
) * q);
/libcore/luni/src/main/java/java/text/
DecimalFormat.java
663
if (roundingMode == RoundingMode.
UNNECESSARY
) {
671
throw new ArithmeticException("rounding mode
UNNECESSARY
but rounding required");
674
setRoundingMode(RoundingMode.
UNNECESSARY
);
[
all
...]
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DecimalFormatTest.java
[
all
...]
/prebuilts/sdk/10/
android.jar
/prebuilts/sdk/11/
android.jar
/prebuilts/sdk/13/
android.jar
/prebuilts/sdk/16/
android.jar
/prebuilts/sdk/5/
android.jar
/prebuilts/sdk/7/
android.jar
/prebuilts/sdk/8/
android.jar
/prebuilts/sdk/9/
android.jar
Completed in 460 milliseconds
1
2