Home
last modified time | relevance | path

Searched refs:unscaledValue (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalConstructorsTest.java72 assertEquals("incorrect value", bA, aNumber.unscaledValue()); in testConstrBI()
91 assertEquals("incorrect value", bA, aNumber.unscaledValue()); in testConstrBIScale()
107 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrBigIntegerMathContext()
124 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrBigIntegerScaleMathContext()
282 assertEquals("incorrect value", bA, aNumber.unscaledValue()); in testConstrDouble()
297 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrDoubleMathContext()
309 assertEquals("incorrect value", bA, aNumber.unscaledValue()); in testConstrDouble01()
321 assertEquals("incorrect value", bA, aNumber.unscaledValue()); in testConstrDouble02()
333 assertEquals("incorrect value", bA, aNumber.unscaledValue()); in testConstrDoubleMinus01()
345 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrInt()
[all …]
DBigDecimalScaleOperationsTest.java82 assertTrue("incorrect unscaled value", aNumber.unscaledValue().equals(bNumber)); in testUnscaledValue()
150 assertTrue("incorrect value", bNumber.unscaledValue().toString().equals(b)); in testSetScaleRoundUp()
164 assertTrue("incorrect value", bNumber.unscaledValue().toString().equals(b)); in testSetScaleRoundDown()
178 assertTrue("incorrect value", bNumber.unscaledValue().toString().equals(b)); in testSetScaleRoundCeiling()
192 assertTrue("incorrect value", bNumber.unscaledValue().toString().equals(b)); in testSetScaleRoundFloor()
206 assertTrue("incorrect value", bNumber.unscaledValue().toString().equals(b)); in testSetScaleRoundHalfUp()
220 assertTrue("incorrect value", bNumber.unscaledValue().toString().equals(b)); in testSetScaleRoundHalfDown()
234 assertTrue("incorrect value", bNumber.unscaledValue().toString().equals(b)); in testSetScaleRoundHalfEven()
263 assertTrue("incorrect value", bNumber.unscaledValue().toString().equals(a)); in testMovePointLeftPos()
277 assertTrue("incorrect value", bNumber.unscaledValue().toString().equals(a)); in testMovePointLeftNeg()
[all …]
DBigDecimalTest.java41 .unscaledValue().equals(value) in test_ConstructorLjava_math_BigInteger()
51 .unscaledValue().equals(value2) in test_ConstructorLjava_math_BigIntegerI()
188 assertTrue("the sum of 23.456 + 3849.235 is wrong", sum.unscaledValue() in test_addLjava_math_BigDecimal()
226 divd3.unscaledValue().toString().equals("5287327")); in test_divideLjava_math_BigDecimalI()
582 setScale2.unscaledValue().equals(setresult) in test_setScaleI()
818 .unscaledValue().toString().equals("-2839485000")); in test_unscaledValue()
821 .unscaledValue().toString().equals("1230000000000")); in test_unscaledValue()
824 + unsVal.unscaledValue(), unsVal.unscaledValue().toString() in test_unscaledValue()
828 .unscaledValue().toString().equals("12345908")); in test_unscaledValue()
838 valueOfL.unscaledValue().toString().equals( in test_valueOfJ()
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalConvertTest.java416 assertEquals("incorrect value", result.unscaledValue(), bdNumber.unscaledValue()); in test_stripTrailingZerosZeros()
421 assertEquals("incorrect value", result.unscaledValue(), bdNumber.unscaledValue()); in test_stripTrailingZerosZeros()
426 assertEquals("incorrect value", result.unscaledValue(), bdNumber.unscaledValue()); in test_stripTrailingZerosZeros()
436 assertEquals("incorrect value", bdResult.unscaledValue(), bdValue.unscaledValue()); in test_stripTrailingZeros()
444 assertEquals("incorrect value", bdResult.unscaledValue(), bd.unscaledValue()); in test_stripTrailingZeros()
DOldBigDecimalConstructorsTest.java43 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrBigIntegerMathContext()
124 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrBigIntegerScaleMathContext()
440 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrDoubleMathContext()
578 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrLongMathContext()
667 assertEquals("incorrect value", res, result.unscaledValue().toString()); in testConstrStringMathContext()
722 big.unscaledValue().equals(value) in test_Constructor_java_math_BigInteger_int()
728 big2.unscaledValue().equals(value2) in test_Constructor_java_math_BigInteger_int()
DBigDecimalTest.java87 assertEquals("-11111111111111111111", a.unscaledValue().toString()); in testPrecisionFromString()
88 assertEquals("-11111111111111111111", b.unscaledValue().toString()); in testPrecisionFromString()
DOldBigDecimalArithmeticTest.java526 assertTrue("the sum of 23.456 + 3849.235 is wrong", sum.unscaledValue().toString().equals( in test_addBigDecimal()
/libcore/luni/src/main/java/java/math/
DBigDecimal.java941 long unscaledValue = this.smallValue * multiplicand.smallValue; in multiply() local
943 boolean longMultiplicationOverflowed = (unscaledValue == Long.MIN_VALUE) && in multiply()
946 return valueOf(unscaledValue, safeLongToInt(newScale)); in multiply()
1826 public BigInteger unscaledValue() { in unscaledValue() method in BigDecimal
2951 private void setUnscaledValue(BigInteger unscaledValue) { in setUnscaledValue() argument
2952 this.intVal = unscaledValue; in setUnscaledValue()
2953 this.bitLength = unscaledValue.bitLength(); in setUnscaledValue()
2955 this.smallValue = unscaledValue.longValue(); in setUnscaledValue()
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java937 String intString = bd.unscaledValue().toString(); in toString()
/libcore/ojluni/src/main/java/java/util/
DFormatter.java3664 = new BigDecimal(value.unscaledValue(), scale, mc);
3667 = new BigDecimalLayout(v.unscaledValue(), v.scale(),
3714 value = new BigDecimal(value.unscaledValue(),
3720 value.unscaledValue(),
3754 + (value.unscaledValue().toString().length() - 1);