Home
last modified time | relevance | path

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

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTest.java2038 …BigDecimal lastParsed = new BigDecimal(Integer.MIN_VALUE); // used to make sure that rounding is m… in checkRounding() local
2046 lastParsed = checkRound(nf, iValue.subtract(smallIncrement), lastParsed); in checkRounding()
2047 lastParsed = checkRound(nf, iValue, lastParsed); in checkRounding()
2048 lastParsed = checkRound(nf, iValue.add(smallIncrement), lastParsed); in checkRounding()
2052 private BigDecimal checkRound(DecimalFormat nf, BigDecimal iValue, BigDecimal lastParsed) { in checkRound() argument
2073 if (lastParsed.compareTo(parsed) > 0) { in checkRound()
2074 errln("Rounding wrong direction!: " + lastParsed + " > " + parsed); in checkRound()
2076 lastParsed = parsed; in checkRound()
2080 return lastParsed; in checkRound()
/external/icu/icu4c/source/test/intltest/
Dnumfmtst.h297 double checkRound(DecimalFormat* df, double iValue, double lastParsed);
Dnumfmtst.cpp2943 double lastParsed=INT32_MIN; //Intger.MIN_VALUE in checkRounding() local
2951 lastParsed=checkRound(df, iValue-smallIncrement, lastParsed); in checkRounding()
2952 lastParsed=checkRound(df, iValue, lastParsed); in checkRounding()
2953 lastParsed=checkRound(df, iValue+smallIncrement, lastParsed); in checkRounding()
2957 double NumberFormatTest::checkRound(DecimalFormat* df, double iValue, double lastParsed) { in checkRound() argument
2976 if (lastParsed>parsed) { in checkRound()
2977 errln("Rounding wrong direction! %d > %d", lastParsed, parsed); in checkRound()
2980 return lastParsed; in checkRound()