Home
last modified time | relevance | path

Searched refs:bd2 (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/test/java/math/BigDecimal/
DFloatDoubleValueTests.java95 BigDecimal bd2 = new BigDecimal(-i); in testFloatDoubleValue() local
98 testDoubleValue0(-i, bd2); in testFloatDoubleValue()
101 testFloatValue0(-i, bd2); in testFloatDoubleValue()
124 BigDecimal bd2 = new BigDecimal(-i); in testDoubleValue() local
127 testDoubleValue0(-i, bd2); in testDoubleValue()
130 checkFloat(bd2, -(float)i); in testDoubleValue()
136 BigDecimal bd2 = new BigDecimal(-i); in testDoubleValue() local
138 checkDouble(bd2, -(double)i); in testDoubleValue()
141 checkFloat(bd2, -(float)i); in testDoubleValue()
153 BigDecimal bd2 = new BigDecimal(-i); in testFloatValue() local
[all …]
DMultiplyTests.java49 BigDecimal[] bd2 = { in multiplyTests() local
73 for (int j = 0; j < bd2.length; j++) { in multiplyTests()
74 Assert.assertEquals(bd1[i].multiply(bd2[j]), expectedResults[i][j], in multiplyTests()
75 bd1[i] + " * " + bd2[j] + " + is " + bd1[i].multiply(bd2[j]) + in multiplyTests()
DRoundingTests.java42 BigDecimal bd2 = null; in roundingTests() local
45 bd2 = bd1.round(mc); // should overflow here in roundingTests()
47 bd1, mc.getPrecision(), bd2)); in roundingTests()
DRangeTests.java157 BigDecimal bd2 = (new BigDecimal(bi,scale)).round(mc); in testRoundingFromBigInteger() local
158 Assert.assertEquals(bd1, bd2, "new BigDecimal(BigInteger,int,MathContext):" + in testRoundingFromBigInteger()
162 bd2 in testRoundingFromBigInteger()
196 BigDecimal bd2 = new BigDecimal(Long.MIN_VALUE).round(mc); in minLongConstructorTest() local
197 Assert.assertEquals(bd1, bd2, "new BigDecimal(long,MathContext):" + in minLongConstructorTest()
201 bd2 in minLongConstructorTest()
DAddTests.java58 BigDecimal bd2 = new BigDecimal(new BigInteger("2790000"), 1); in simpleTests() local
65 if (!bd1[i].add(bd2).equals(expectedResult[i])) in simpleTests()
DSquareRootTests.java130 BigDecimal bd2 = bd1.multiply(ONE_TENTH); in twoDigitTests() local
132 for (BigDecimal bd : List.of(bd0, bd1, bd2)) { in twoDigitTests()
/libcore/luni/src/test/java/libcore/java/sql/
DOldPreparedStatementTest.java1868 BigDecimal bd2 = new BigDecimal("12.21"); in testSetObject_int_Object_int_int() local
1869 ps.setObject(1, bd2, Types.DECIMAL, 2); in testSetObject_int_Object_int_int()