Home
last modified time | relevance | path

Searched refs:setScale (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalTest.java74 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 …]
DOldBigDecimalScaleOperationsTest.java84 BigDecimal x2 = x1.setScale(75); in testSetScale()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalScaleOperationsTest.java93 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 …]
DBigDecimalTest.java579 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/luni/src/main/java/javax/sql/
DRowSetMetaData.java233 public void setScale(int columnIndex, int theScale) throws SQLException; in setScale() method
/libcore/luni/src/main/java/java/math/
DBigDecimal.java1869 public BigDecimal setScale(int newScale, RoundingMode roundingMode) { in setScale() method in BigDecimal
1916 public BigDecimal setScale(int newScale, int roundingMode) { in setScale() method in BigDecimal
1917 return setScale(newScale, RoundingMode.valueOf(roundingMode)); in setScale()
1936 public BigDecimal setScale(int newScale) { in setScale() method in BigDecimal
1937 return setScale(newScale, RoundingMode.UNNECESSARY); in setScale()