Searched refs:fraction (Results 1 – 2 of 2) sorted by relevance
/libcore/luni/src/test/java/libcore/java/text/ |
D | DecimalFormatTest.java | 156 private void assertBigDecimalWithFraction(BigDecimal bd, String expectedResult, int fraction) { in assertBigDecimalWithFraction() argument 158 pf.setMaximumFractionDigits(fraction); in assertBigDecimalWithFraction() 162 …private void assertDecFmtWithMultiplierAndFraction(String value, int multiplier, int fraction, Str… in assertDecFmtWithMultiplierAndFraction() argument 165 df.setMaximumFractionDigits(fraction); in assertDecFmtWithMultiplierAndFraction() 170 …cFmtWithMultiplierAndFractionByLocale(String value, int multiplier, int fraction, Locale locale, S… in assertDecFmtWithMultiplierAndFractionByLocale() argument 173 df.setMaximumFractionDigits(fraction); in assertDecFmtWithMultiplierAndFractionByLocale()
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 2722 long fraction = unscaledVal % sizeOfFraction; in smallRound() local 2725 if (fraction != 0) { in smallRound() 2727 compRem = longCompareTo(Math.abs(fraction) * 2, sizeOfFraction); in smallRound() 2730 Long.signum(fraction) * (5 + compRem), in smallRound() 2759 private static int roundingBehavior(int parityBit, int fraction, RoundingMode roundingMode) { in roundingBehavior() argument 2764 if (fraction != 0) { in roundingBehavior() 2769 increment = Integer.signum(fraction); in roundingBehavior() 2774 increment = Math.max(Integer.signum(fraction), 0); in roundingBehavior() 2777 increment = Math.min(Integer.signum(fraction), 0); in roundingBehavior() 2780 if (Math.abs(fraction) >= 5) { in roundingBehavior() [all …]
|