/openjdk7/jdk/test/java/math/RoundingMode/ |
H A D | RoundingModeTests.java | 27 * @summary Basic tests for the RoundingMode class. 31 import java.math.RoundingMode; 40 for(RoundingMode rm: RoundingMode.values()) { 41 if (rm != RoundingMode.valueOf(rm.toString())) { 48 if (RoundingMode.valueOf(BigDecimal.ROUND_CEILING) != 49 RoundingMode.CEILING) { 53 if (RoundingMode.valueOf(BigDecimal.ROUND_DOWN) != 54 RoundingMode.DOWN) { 58 if (RoundingMode [all...] |
/openjdk7/langtools/test/tools/javac/StringsInSwitch/ |
H A D | BadlyTypedLabel2.java | 8 import static java.math.RoundingMode.*;
|
/openjdk7/jdk/test/java/util/EnumSet/ |
H A D | OneUniverse.java | 31 import java.math.RoundingMode; 49 EnumSet<RoundingMode> noneSet = EnumSet.noneOf(RoundingMode.class); 50 EnumSet<RoundingMode> allSet = EnumSet.allOf(RoundingMode.class);
|
/openjdk7/jdk/src/share/classes/java/math/ |
H A D | MathContext.java | 45 * a {@link RoundingMode} object which specifies the algorithm to be 50 * @see RoundingMode 62 private static final RoundingMode DEFAULT_ROUNDINGMODE = RoundingMode.HALF_UP; 79 new MathContext(0, RoundingMode.HALF_UP); 84 * rounding mode of {@link RoundingMode#HALF_EVEN HALF_EVEN}, the 88 new MathContext(7, RoundingMode.HALF_EVEN); 93 * rounding mode of {@link RoundingMode#HALF_EVEN HALF_EVEN}, the 97 new MathContext(16, RoundingMode.HALF_EVEN); 102 * rounding mode of {@link RoundingMode#HALF_EVE [all...] |
H A D | RoundingMode.java | 94 public enum RoundingMode { enum 145 * result is positive, behaves as for {@code RoundingMode.UP}; 146 * if negative, behaves as for {@code RoundingMode.DOWN}. Note 169 * result is positive, behave as for {@code RoundingMode.DOWN}; 170 * if negative, behave as for {@code RoundingMode.UP}. Note that 194 * Behaves as for {@code RoundingMode.UP} if the discarded 196 * {@code RoundingMode.DOWN}. Note that this is the rounding 220 * down. Behaves as for {@code RoundingMode.UP} if the discarded 222 * {@code RoundingMode.DOWN}. 246 * {@code RoundingMode 306 private RoundingMode(int oldMode) { method in class:RoundingMode [all...] |
H A D | BigDecimal.java | 59 * of the {@code RoundingMode} {@code enum}, (such as {@link 60 * RoundingMode#HALF_UP}) should be used instead. 150 * three digits using the {@linkplain RoundingMode#FLOOR floor} 212 * @see RoundingMode 866 * RoundingMode is UNNECESSARY. 1357 * <p>The new {@link #divide(BigDecimal, int, RoundingMode)} method 1507 * {@code roundingMode==RoundingMode.UNNECESSARY} and 1512 public BigDecimal divide(BigDecimal divisor, int scale, RoundingMode roundingMode) { 1522 * <p>The new {@link #divide(BigDecimal, RoundingMode)} method 1557 * {@code roundingMode==RoundingMode [all...] |
/openjdk7/langtools/test/tools/apt/mirror/declaration/ |
H A D | ConstExpr.java | 35 import java.math.RoundingMode; 42 import static java.math.RoundingMode.UP; 76 public static final RoundingMode R = UP; // not a compile-time constant
|
/openjdk7/jdk/test/java/lang/Class/ |
H A D | IsAnnotationType.java | 51 failures += test(java.math.RoundingMode.class, false);
|
H A D | IsEnum.java | 50 failures += test(java.math.RoundingMode.class, true);
|
/openjdk7/jdk/make/java/math/ |
H A D | Makefile | 42 java/math/RoundingMode.java
|
/openjdk7/jdk/test/java/math/BigDecimal/ |
H A D | NegateTests.java | 89 new MathContext(1, RoundingMode.CEILING)); 97 new MathContext(1, RoundingMode.FLOOR));
|
H A D | IntegralDivisionTests.java | 141 new MathContext(i, RoundingMode.DOWN)); 254 MathContext mc = new MathContext(9,RoundingMode.DOWN); 264 for(RoundingMode rm: RoundingMode.values()) 283 for(RoundingMode rm: RoundingMode.values()) 303 for(RoundingMode rm: RoundingMode.values()) 325 for(RoundingMode rm: RoundingMode [all...] |
H A D | AddTests.java | 38 private static Set<RoundingMode> nonExactRoundingModes = 39 EnumSet.complementOf(EnumSet.of(RoundingMode.UNNECESSARY)); 87 mc = new MathContext(2, RoundingMode.DOWN); 238 for(RoundingMode rm : nonExactRoundingModes) { 273 MathContext mc = new MathContext(1,RoundingMode.DOWN);
|
H A D | ZeroScalingTests.java | 36 static MathContext longEnough = new MathContext(50, RoundingMode.UNNECESSARY); 50 new MathContext(0, RoundingMode.UNNECESSARY), 51 new MathContext(100, RoundingMode.UNNECESSARY), 52 new MathContext(5, RoundingMode.UNNECESSARY), 53 new MathContext(4, RoundingMode.UNNECESSARY), 54 new MathContext(3, RoundingMode.UNNECESSARY), 55 new MathContext(2, RoundingMode.UNNECESSARY), 56 new MathContext(1, RoundingMode.UNNECESSARY),
|
H A D | DivideTests.java | 128 RoundingMode.UNNECESSARY); 247 MathContext mc = new MathContext(3, RoundingMode.FLOOR); 324 " scale " + scale + " rounding mode " + RoundingMode.valueOf(rm) + 350 BigDecimal quo = test[0].divide(test[1], RoundingMode.HALF_UP);
|
H A D | DivideMcTests.java | 35 import java.math.RoundingMode; 5774 BigDecimal res1 = v1.divide(v2, new MathContext(mpc, RoundingMode.HALF_EVEN)); 5775 BigDecimal res2 = v1.divide(v2, new MathContext(128, RoundingMode.HALF_EVEN)).round(new MathContext(mpc, RoundingMode.HALF_EVEN));
|
/openjdk7/jdk/src/share/classes/java/text/ |
H A D | DigitList.java | 43 import java.math.RoundingMode; 107 private RoundingMode roundingMode = RoundingMode.HALF_EVEN; 125 void setRoundingMode(RoundingMode r) { 415 * java.math.RoundingMode class. 422 * mode being set to RoundingMode.UNNECESSARY 485 "Rounding needed with the rounding mode being set to RoundingMode.UNNECESSARY");
|
H A D | NumberFormat.java | 46 import java.math.RoundingMode; 232 * mode being set to RoundingMode.UNNECESSARY 282 * mode being set to RoundingMode.UNNECESSARY 293 * mode being set to RoundingMode.UNNECESSARY 304 * mode being set to RoundingMode.UNNECESSARY 314 * mode being set to RoundingMode.UNNECESSARY 414 * java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}) for formatting, 430 * java.math.RoundingMode#HALF_EVEN RoundingMode [all...] |
H A D | DecimalFormat.java | 46 import java.math.RoundingMode; 294 * {@link java.math.RoundingMode} for formatting. By default, it uses 295 * {@link java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}. 485 * mode being set to RoundingMode.UNNECESSARY 516 * mode being set to RoundingMode.UNNECESSARY 534 * mode being set to RoundingMode.UNNECESSARY 617 * mode being set to RoundingMode.UNNECESSARY 636 * mode being set to RoundingMode.UNNECESSARY 705 * mode being set to RoundingMode [all...] |
/openjdk7/jdk/src/share/classes/sun/launcher/ |
H A D | LauncherHelper.java | 49 import java.math.RoundingMode; 291 2, RoundingMode.HALF_EVEN).toPlainString() + prefix.abbrev;
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | Formatter.java | 42 import java.math.RoundingMode; 3588 value = value.setScale(prec, RoundingMode.HALF_UP);
|