Searched refs:setScale (Results 1 – 10 of 10) sorted by relevance
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalTest.java | 74 BigDecimal setScale2 = setScale1.setScale(4); in test_setScaleILjava_math_RoundingMode() 81 setScale2 = setScale1.setScale(17, RoundingMode.CEILING); in test_setScaleILjava_math_RoundingMode() 90 setScale2 = setScale1.setScale(1, RoundingMode.CEILING); in test_setScaleILjava_math_RoundingMode() 95 setScale2 = setNeg.setScale(1, RoundingMode.CEILING); in test_setScaleILjava_math_RoundingMode() 102 setScale2 = setNeg.setScale(1, RoundingMode.DOWN); in test_setScaleILjava_math_RoundingMode() 108 setScale2 = setScale1.setScale(1, RoundingMode.DOWN); in test_setScaleILjava_math_RoundingMode() 114 setScale2 = setScale1.setScale(1, RoundingMode.FLOOR); in test_setScaleILjava_math_RoundingMode() 118 setScale2 = setNeg.setScale(1, RoundingMode.FLOOR); in test_setScaleILjava_math_RoundingMode() 125 setScale2 = setScale1.setScale(3, RoundingMode.HALF_DOWN); in test_setScaleILjava_math_RoundingMode() 131 setScale2 = setScale1.setScale(1, RoundingMode.HALF_DOWN); in test_setScaleILjava_math_RoundingMode() [all …]
|
D | OldBigDecimalScaleOperationsTest.java | 84 BigDecimal x2 = x1.setScale(75); in testSetScale()
|
D | BigDecimalTest.java | 118 zero = zero.setScale(2, RoundingMode.HALF_EVEN); in test191227() 121 other = other.setScale(2, RoundingMode.HALF_EVEN); in test191227()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigDecimalScaleOperationsTest.java | 93 BigDecimal bNumber = aNumber.setScale(newScale); in testSetScaleGreater() 105 BigDecimal bNumber = aNumber.setScale(newScale); in testSetScaleLess() 119 aNumber.setScale(newScale); in testSetScaleException() 134 BigDecimal bNumber = aNumber.setScale(newScale); in testSetScaleSame() 148 BigDecimal bNumber = aNumber.setScale(newScale, BigDecimal.ROUND_UP); in testSetScaleRoundUp() 162 BigDecimal bNumber = aNumber.setScale(newScale, BigDecimal.ROUND_DOWN); in testSetScaleRoundDown() 176 BigDecimal bNumber = aNumber.setScale(newScale, BigDecimal.ROUND_CEILING); in testSetScaleRoundCeiling() 190 BigDecimal bNumber = aNumber.setScale(newScale, BigDecimal.ROUND_FLOOR); in testSetScaleRoundFloor() 204 BigDecimal bNumber = aNumber.setScale(newScale, BigDecimal.ROUND_HALF_UP); in testSetScaleRoundHalfUp() 218 BigDecimal bNumber = aNumber.setScale(newScale, BigDecimal.ROUND_HALF_DOWN); in testSetScaleRoundHalfDown() [all …]
|
D | BigDecimalTest.java | 579 BigDecimal setScale2 = setScale1.setScale(5); in test_setScaleI() 586 setScale2 = setScale1.setScale(2, BigDecimal.ROUND_UNNECESSARY); in test_setScaleI() 597 BigDecimal setScale2 = setScale1.setScale(4); in test_setScaleII() 603 setScale2 = setScale1.setScale(17, BigDecimal.ROUND_CEILING); in test_setScaleII() 612 setScale2 = setScale1.setScale(1, BigDecimal.ROUND_CEILING); in test_setScaleII() 617 setScale2 = setNeg.setScale(1, BigDecimal.ROUND_CEILING); in test_setScaleII() 624 setScale2 = setNeg.setScale(1, BigDecimal.ROUND_DOWN); in test_setScaleII() 630 setScale2 = setScale1.setScale(1, BigDecimal.ROUND_DOWN); in test_setScaleII() 636 setScale2 = setScale1.setScale(1, BigDecimal.ROUND_FLOOR); in test_setScaleII() 640 setScale2 = setNeg.setScale(1, BigDecimal.ROUND_FLOOR); in test_setScaleII() [all …]
|
/libcore/ojluni/src/main/java/javax/sql/ |
D | RowSetMetaData.java | 193 void setScale(int columnIndex, int scale) throws SQLException; in setScale() method
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigDecimal.java | 1347 return result.setScale(preferredScale); // can achieve target scale in add() 1349 return result.setScale(result.scale() + precisionDiff); in add() 1704 return quotient.setScale(preferredScale, ROUND_UNNECESSARY); in divide() 1786 return this.setScale(preferredScale, ROUND_UNNECESSARY); in divideToIntegralValue() 1798 quotient = quotient.setScale(0, RoundingMode.DOWN); in divideToIntegralValue() 1804 quotient = quotient.setScale(preferredScale, ROUND_UNNECESSARY); in divideToIntegralValue() 1865 result = result.setScale(0, RoundingMode.DOWN); in divideToIntegralValue() 1872 return result.setScale(result.scale() + in divideToIntegralValue() 2388 public BigDecimal setScale(int newScale, RoundingMode roundingMode) { in setScale() method in BigDecimal 2389 return setScale(newScale, roundingMode.oldMode); in setScale() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 2970 fraction = fraction.setScale(outputScale, RoundingMode.FLOOR); in format() 3068 … BigDecimal valueBD = fraction.multiply(rangeBD).setScale(0, RoundingMode.FLOOR).add(minBD); in convertFromFraction()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Formatter.java | 3711 value = value.setScale(prec, RoundingMode.HALF_UP);
|
/libcore/api/ |
D | current.txt | 4737 method public java.math.BigDecimal setScale(int, java.math.RoundingMode); 4738 method public java.math.BigDecimal setScale(int, int); 4739 method public java.math.BigDecimal setScale(int); 18517 method public void setScale(int, int) throws java.sql.SQLException;
|