/libcore/luni/src/main/java/java/math/ |
RoundingMode.java | 63 HALF_UP(BigDecimal.ROUND_HALF_UP), 112 case BigDecimal.ROUND_HALF_UP:
|
/external/icu/android_icu4j/src/main/java/android/icu/math/ |
MathContext.java | 61 * (<code>9, SCIENTIFIC, false, ROUND_HALF_UP</code>). 67 * settings were (<code>0, PLAIN, false, ROUND_HALF_UP</code>). 197 public static final int ROUND_HALF_UP=4; 282 * @see #ROUND_HALF_UP 294 private static final int DEFAULT_ROUNDINGMODE=ROUND_HALF_UP; 302 private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUND_HALF_DOWN,ROUND_HALF_EVEN,ROUND_UP}; 305 private static final java.lang.String ROUNDWORDS[]=new java.lang.String[]{"ROUND_HALF_UP","ROUND_UNNECESSARY","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_UP"}; // matching names of the ROUNDS values 320 * roundingMode=ROUND_HALF_UP</code>. 323 * @see #ROUND_HALF_UP 496 * {@link #ROUND_HALF_UP}, [all...] |
BigDecimal.java | 136 * form=SCIENTIFIC, lostDigits=false, roundingMode=ROUND_HALF_UP</code>) perform general-purpose floating point 141 * form=PLAIN, lostDigits=false, roundingMode=ROUND_HALF_UP</code>; these settings perform fixed point arithmetic with 298 * @see MathContext#ROUND_HALF_UP 300 public static final int ROUND_HALF_UP = android.icu.math.MathContext.ROUND_HALF_UP; [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/ |
MathContext.java | 60 * (<code>9, SCIENTIFIC, false, ROUND_HALF_UP</code>). 66 * settings were (<code>0, PLAIN, false, ROUND_HALF_UP</code>). 206 public static final int ROUND_HALF_UP=4; 293 * @see #ROUND_HALF_UP 305 private static final int DEFAULT_ROUNDINGMODE=ROUND_HALF_UP; 313 private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUND_HALF_DOWN,ROUND_HALF_EVEN,ROUND_UP}; 316 private static final java.lang.String ROUNDWORDS[]=new java.lang.String[]{"ROUND_HALF_UP","ROUND_UNNECESSARY","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_UP"}; // matching names of the ROUNDS values 331 * roundingMode=ROUND_HALF_UP</code>. 334 * @see #ROUND_HALF_UP 515 * {@link #ROUND_HALF_UP}, [all...] |
BigDecimal.java | 133 * form=SCIENTIFIC, lostDigits=false, roundingMode=ROUND_HALF_UP</code>) perform general-purpose floating point 138 * form=PLAIN, lostDigits=false, roundingMode=ROUND_HALF_UP</code>; these settings perform fixed point arithmetic with 304 * @see MathContext#ROUND_HALF_UP 307 public static final int ROUND_HALF_UP = com.ibm.icu.math.MathContext.ROUND_HALF_UP; [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/ |
MathContext.java | 60 * (<code>9, SCIENTIFIC, false, ROUND_HALF_UP</code>). 66 * settings were (<code>0, PLAIN, false, ROUND_HALF_UP</code>). 206 public static final int ROUND_HALF_UP=4; 293 * @see #ROUND_HALF_UP 305 private static final int DEFAULT_ROUNDINGMODE=ROUND_HALF_UP; 313 private static final int ROUNDS[]=new int[]{ROUND_HALF_UP,ROUND_UNNECESSARY,ROUND_CEILING,ROUND_DOWN,ROUND_FLOOR,ROUND_HALF_DOWN,ROUND_HALF_EVEN,ROUND_UP}; 316 private static final java.lang.String ROUNDWORDS[]=new java.lang.String[]{"ROUND_HALF_UP","ROUND_UNNECESSARY","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_UP"}; // matching names of the ROUNDS values 331 * roundingMode=ROUND_HALF_UP</code>. 334 * @see #ROUND_HALF_UP 515 * {@link #ROUND_HALF_UP}, [all...] |
BigDecimal.java | 135 * form=SCIENTIFIC, lostDigits=false, roundingMode=ROUND_HALF_UP</code>) perform general-purpose floating point 140 * form=PLAIN, lostDigits=false, roundingMode=ROUND_HALF_UP</code>; these settings perform fixed point arithmetic with 306 * @see MathContext#ROUND_HALF_UP 309 public static final int ROUND_HALF_UP = com.ibm.icu.math.MathContext.ROUND_HALF_UP; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryStats.java | 64 BigDecimal kb = bytes.divide(new BigDecimal(1024), 2, BigDecimal.ROUND_HALF_UP); 68 BigDecimal mb = kb.divide(new BigDecimal(1024), 2, BigDecimal.ROUND_HALF_UP);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
RoundingModeTest.java | 34 assertEquals("valueOf failed for ROUND_HALF_UP", RoundingMode.valueOf(BigDecimal.ROUND_HALF_UP), RoundingMode.HALF_UP);
|
BigDecimalScaleOperationsTest.java | 204 BigDecimal bNumber = aNumber.setScale(newScale, BigDecimal.ROUND_HALF_UP);
|
BigDecimalTest.java | 247 BigDecimal divd3 = divd1.divide(divd2, 3, BigDecimal.ROUND_HALF_UP); 685 // testing rounding Mode ROUND_HALF_UP 687 setScale2 = setScale1.setScale(3, BigDecimal.ROUND_HALF_UP); 689 "the number 134567.34658 after setting scale to 3/ROUND_HALF_UP is wrong", 693 setScale2 = setNeg.setScale(0, BigDecimal.ROUND_HALF_UP); 695 "the number -1234.4567 after setting scale to 0/ROUND_HALF_UP is wrong", [all...] |
BigDecimalArithmeticTest.java | 734 * Divide: rounding mode is ROUND_HALF_UP, result is positive; distance = -1 745 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_HALF_UP); 751 * Divide: rounding mode is ROUND_HALF_UP, result is negative; distance = -1 [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
IntlTestDecimalFormatAPI.java | 40 * decF4.setRoundingMode(java.math.BigDecimal.ROUND_HALF_UP) does not work 62 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); 73 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); 86 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
IntlTestDecimalFormatAPI.java | 39 * decF4.setRoundingMode(java.math.BigDecimal.ROUND_HALF_UP) does not work 61 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); 72 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP); 85 dec.setRoundingMode(BigDecimal.ROUND_HALF_UP);
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
UniversalTimeScale.java | 474 return universal.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); 491 return universalTime.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
UniversalTimeScale.java | 524 return universal.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset); 543 return universalTime.divide(units, BigDecimal.ROUND_HALF_UP).subtract(epochOffset);
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
NumberFormatJDK.java | 164 icuMode = BigDecimal.ROUND_HALF_UP; 270 case BigDecimal.ROUND_HALF_UP:
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
NumberFormatICU.java | 128 case com.ibm.icu.math.BigDecimal.ROUND_HALF_UP: 220 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_UP);
|
DecimalFormatICU.java | 217 case com.ibm.icu.math.BigDecimal.ROUND_HALF_UP: 378 fIcuDecfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_HALF_UP);
|
/packages/apps/Settings/src/com/android/settings/utils/ |
FileSizeFormatter.java | 81 numberFormatter.setRoundingMode(BigDecimal.ROUND_HALF_UP);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/ |
DfpDec.java | 225 case ROUND_HALF_UP:
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
MathUtils.java | [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/ |
DiagBigDecimalTest.java | [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/ |
DiagBigDecimalTest.java | [all...] |
/frameworks/base/core/java/android/text/format/ |
Formatter.java | 135 numberFormatter.setRoundingMode(BigDecimal.ROUND_HALF_UP);
|