Searched refs:lastParsed (Results 1 – 4 of 4) sorted by relevance
/external/icu/icu4c/source/test/intltest/ |
D | numfmtst.h | 395 double checkRound(DecimalFormat* df, double iValue, double lastParsed);
|
D | numfmtst.cpp | 3171 double lastParsed=INT32_MIN; //Intger.MIN_VALUE in checkRounding() local 3179 lastParsed=checkRound(df, iValue-smallIncrement, lastParsed); in checkRounding() 3180 lastParsed=checkRound(df, iValue, lastParsed); in checkRounding() 3181 lastParsed=checkRound(df, iValue+smallIncrement, lastParsed); in checkRounding() 3185 double NumberFormatTest::checkRound(DecimalFormat* df, double iValue, double lastParsed) { in checkRound() argument 3204 if (lastParsed>parsed) { in checkRound() 3205 errln("Rounding wrong direction! %d > %d", lastParsed, parsed); in checkRound() 3208 return lastParsed; in checkRound()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | NumberFormatTest.java | 2513 …BigDecimal lastParsed = new BigDecimal(Integer.MIN_VALUE); // used to make sure that rounding is m… in checkRounding() local 2521 lastParsed = checkRound(nf, iValue.subtract(smallIncrement), lastParsed); in checkRounding() 2522 lastParsed = checkRound(nf, iValue, lastParsed); in checkRounding() 2523 lastParsed = checkRound(nf, iValue.add(smallIncrement), lastParsed); in checkRounding() 2527 private BigDecimal checkRound(DecimalFormat nf, BigDecimal iValue, BigDecimal lastParsed) { in checkRound() argument 2548 if (lastParsed.compareTo(parsed) > 0) { in checkRound() 2549 errln("Rounding wrong direction!: " + lastParsed + " > " + parsed); in checkRound() 2551 lastParsed = parsed; in checkRound() 2555 return lastParsed; in checkRound()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | NumberFormatTest.java | 2516 …BigDecimal lastParsed = new BigDecimal(Integer.MIN_VALUE); // used to make sure that rounding is m… in checkRounding() local 2524 lastParsed = checkRound(nf, iValue.subtract(smallIncrement), lastParsed); in checkRounding() 2525 lastParsed = checkRound(nf, iValue, lastParsed); in checkRounding() 2526 lastParsed = checkRound(nf, iValue.add(smallIncrement), lastParsed); in checkRounding() 2530 private BigDecimal checkRound(DecimalFormat nf, BigDecimal iValue, BigDecimal lastParsed) { in checkRound() argument 2551 if (lastParsed.compareTo(parsed) > 0) { in checkRound() 2552 errln("Rounding wrong direction!: " + lastParsed + " > " + parsed); in checkRound() 2554 lastParsed = parsed; in checkRound() 2558 return lastParsed; in checkRound()
|