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.java2389 BigInteger[] integerAndFraction; in toBigIntegerExact() local
2394integerAndFraction = getUnscaledValue().divideAndRemainder(Multiplication.powerOf10(scale)); in toBigIntegerExact()
2395 if (integerAndFraction[1].signum() != 0) { in toBigIntegerExact()
2399 return integerAndFraction[0]; in toBigIntegerExact()
2683 BigInteger[] integerAndFraction = getUnscaledValue().divideAndRemainder(sizeOfFraction); in inplaceRound() local
2688 if (integerAndFraction[1].signum() != 0) { in inplaceRound()
2690 compRem = (integerAndFraction[1].abs().shiftLeftOneBit().compareTo(sizeOfFraction)); in inplaceRound()
2692 compRem = roundingBehavior( integerAndFraction[0].testBit(0) ? 1 : 0, in inplaceRound()
2693 integerAndFraction[1].signum() * (5 + compRem), in inplaceRound()
2696 integerAndFraction[0] = integerAndFraction[0].add(BigInteger.valueOf(compRem)); in inplaceRound()
[all …]