Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/math/BigDecimal/
DFloatDoubleValueTests.java94 BigDecimal bd1 = new BigDecimal(i); in testFloatDoubleValue() local
97 testDoubleValue0( i, bd1); in testFloatDoubleValue()
100 testFloatValue0( i, bd1); in testFloatDoubleValue()
123 BigDecimal bd1 = new BigDecimal(i); in testDoubleValue() local
126 testDoubleValue0( i, bd1); in testDoubleValue()
129 checkFloat(bd1, (float)i); in testDoubleValue()
135 BigDecimal bd1 = new BigDecimal(i); in testDoubleValue() local
137 checkDouble(bd1, (double)i); in testDoubleValue()
140 checkFloat(bd1, (float)i); in testDoubleValue()
152 BigDecimal bd1 = new BigDecimal(i); in testFloatValue() local
[all …]
DMultiplyTests.java43 BigDecimal[] bd1 = { in multiplyTests() local
72 for (int i = 0; i < bd1.length; i++) { 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.java41 BigDecimal bd1 = BigDecimal.valueOf(11, Integer.MIN_VALUE); in roundingTests() local
45 bd2 = bd1.round(mc); // should overflow here in roundingTests()
47 bd1, mc.getPrecision(), bd2)); in roundingTests()
DRangeTests.java156 BigDecimal bd1 = new BigDecimal(bi,scale, mc); in testRoundingFromBigInteger() local
158 Assert.assertEquals(bd1, bd2, "new BigDecimal(BigInteger,int,MathContext):" + in testRoundingFromBigInteger()
161 bd1 + "; expected == " + in testRoundingFromBigInteger()
195 BigDecimal bd1 = new BigDecimal(Long.MIN_VALUE,mc); in minLongConstructorTest() local
197 Assert.assertEquals(bd1, bd2, "new BigDecimal(long,MathContext):" + in minLongConstructorTest()
200 bd1 + "; expected == " + in minLongConstructorTest()
DAddTests.java53 BigDecimal[] bd1 = { in simpleTests() local
64 for (int i = 0; i < bd1.length; i++) { in simpleTests()
65 if (!bd1[i].add(bd2).equals(expectedResult[i])) in simpleTests()
DSquareRootTests.java129 BigDecimal bd1 = bd0.multiply(ONE_TENTH); in twoDigitTests() local
130 BigDecimal bd2 = bd1.multiply(ONE_TENTH); in twoDigitTests()
132 for (BigDecimal bd : List.of(bd0, bd1, bd2)) { in twoDigitTests()