Home | History | Annotate | Download | only in intltest

Lines Matching refs:NUM

784     Number num = df.parse(str, new ParsePosition(0));
785 if (num.doubleValue() != -9.223372036854776E16)
1340 Formattable num;
1341 fmt->parse(UnicodeString("abc3"), num, status);
1343 errln(UnicodeString("Bug 4052223 failed : can't parse string \"a\". Got ") /*+ num*/);
1403 double num = 1234.5;
1404 fmt->format(num, formatted, field);
1431 Formattable num;
1433 df->parse(text, num, pp);
1439 temp = df->format(num.getDouble(), temp, pos);
1440 //if (!num.toString().equals("1.222"))
1442 //errln("\"" + text + "\" is parsed as " + num);
1446 df->parse(text, num, pp);
1448 temp = df->format(num.getDouble(), temp, pos);
1449 //if (!num.toString().equals("1.222"))
1510 Formattable num;
1511 df->parse(text, num, pos1);
1512 if (pos1 == ParsePosition(0)/*num != null*/) {
1513 errln(UnicodeString("Test Failed: \"") + text + "\" is parsed as " /*+ num*/);
1518 df->parse(UnicodeString("$"), num, pos2);
1519 if (pos2 == ParsePosition(0) /*num != null*/){
1520 errln(UnicodeString("Test Failed: \"$\" is parsed as ") /*+ num*/);
1949 UnicodeString("#.00 'num''ber'"), UnicodeString("''#.00''")
1960 Formattable num;
1962 nf->parse(out, num, pp);
1963 double val = num.getDouble();
1972 nf->parse(out2, num, pp);
1973 double val2 = num.getDouble();
2182 Formattable num;
2183 fmt->parse(s, num, status);
2185 if (num.getType() == Formattable::kDouble &&
2186 _u_abs(num.getDouble() - a) / a < 0.01) { // RT within 1%
2188 toString(num) + " ok");
2191 toString(num) + " FAIL");
2509 Formattable num;
2510 fmt->parse(str, num, status);
2512 if (num.getType() != Formattable::kLong &&
2513 num.getType() != Formattable::kDouble) {
2515 toString(num));
2517 double d = num.getType() == Formattable::kDouble ?
2518 num.getDouble() : (double) num.getLong();
2522 ") => " + toString(num));
2591 const double NUM[] = { -2.5, -1.5, -0.5, 0.5, 1.5, 2.5, 3.5, 4.5 };
2593 int32_t N = UPRV_LENGTHOF(NUM);
2599 fmt.format(NUM[i], str, pos);
2601 logln(UnicodeString("Ok ") + NUM[i] + " x 0. = " + str);
2603 errln(UnicodeString("FAIL ") + NUM[i] + " x 0. = " + str +
3029 char *num = new char[NUMSIZE];
3031 num[i] = '0' + (i+1) % 10;
3033 num[NUMSIZE-3] = '.';
3034 num[NUMSIZE-1] = 0;
3038 fmtable.setDecimalNumber(num, status);
3048 UnicodeString expected(num, -1, US_INV);
3050 delete [] num;