Searched refs:setScale (Results 1 – 6 of 6) 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 | 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 …]
|