Home
last modified time | relevance | path

Searched refs:setScale (Results 1 – 9 of 9) 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()
DBigDecimalTest.java118 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/
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/ojluni/src/main/java/javax/sql/
DRowSetMetaData.java193 void setScale(int columnIndex, int scale) throws SQLException; in setScale() method
/libcore/luni/src/main/java/java/math/
DBigDecimal.java1877 public BigDecimal setScale(int newScale, RoundingMode roundingMode) { in setScale() method in BigDecimal
1924 public BigDecimal setScale(int newScale, int roundingMode) { in setScale() method in BigDecimal
1925 return setScale(newScale, RoundingMode.valueOf(roundingMode)); in setScale()
1944 public BigDecimal setScale(int newScale) { in setScale() method in BigDecimal
1945 return setScale(newScale, RoundingMode.UNNECESSARY); in setScale()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java2961 fraction = fraction.setScale(outputScale, RoundingMode.FLOOR); in format()
3059 … BigDecimal valueBD = fraction.multiply(rangeBD).setScale(0, RoundingMode.FLOOR).add(minBD); in convertFromFraction()
/libcore/ojluni/src/main/java/java/util/
DFormatter.java3711 value = value.setScale(prec, RoundingMode.HALF_UP);