Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/math/
DBigDecimal.java2387 BigInteger[] integerAndFraction; in toBigIntegerExact() local
2392integerAndFraction = getUnscaledValue().divideAndRemainder(Multiplication.powerOf10(scale)); in toBigIntegerExact()
2393 if (integerAndFraction[1].signum() != 0) { in toBigIntegerExact()
2397 return integerAndFraction[0]; in toBigIntegerExact()
2681 BigInteger[] integerAndFraction = getUnscaledValue().divideAndRemainder(sizeOfFraction); in inplaceRound() local
2686 if (integerAndFraction[1].signum() != 0) { in inplaceRound()
2688 compRem = (integerAndFraction[1].abs().shiftLeftOneBit().compareTo(sizeOfFraction)); in inplaceRound()
2690 compRem = roundingBehavior( integerAndFraction[0].testBit(0) ? 1 : 0, in inplaceRound()
2691 integerAndFraction[1].signum() * (5 + compRem), in inplaceRound()
2694 integerAndFraction[0] = integerAndFraction[0].add(BigInteger.valueOf(compRem)); in inplaceRound()
[all …]