Searched refs:preferredScale (Results 1 – 3 of 3) sorted by relevance
98 int preferredScale = Math.max(zero.scale(), element.scale()); in addTests() local100 if (preferredScale < -4 ) in addTests()101 preferredScale = -4; in addTests()102 else if (preferredScale > -(5 - mc.getPrecision())) { in addTests()103 preferredScale = -(5 - mc.getPrecision()); in addTests()108 Assert.assertFalse(result.scale() != preferredScale || in addTests()110 "Expected scale " + preferredScale + in addTests()115 Assert.assertFalse(result.scale() != preferredScale || in addTests()117 "Expected scale " + preferredScale + in addTests()122 Assert.assertFalse(result.scale() != preferredScale || in addTests()[all …]
460 int preferredScale = bd.scale()/2;462 BigDecimal.valueOf(0L, preferredScale);473 if (result.scale() != preferredScale) {586 if (result.scale() != preferredScale) {
1429 int preferredScale = Math.max(lhs.scale(), augend.scale()); in add() local1433 return zeroValueOf(preferredScale); in add()1436 if (result.scale() == preferredScale) in add()1438 else if (result.scale() > preferredScale) { in add()1439 … return stripZerosToMatchScale(result.intVal, result.intCompact, result.scale, preferredScale); in add()1442 int scaleDiff = preferredScale - result.scale(); in add()1445 return result.setScale(preferredScale); // can achieve target scale in add()1768 int preferredScale = saturateLong((long) this.scale - divisor.scale); in divide() local1771 return zeroValueOf(preferredScale); in divide()1799 if (preferredScale > quotientScale) in divide()[all …]