Home | History | Annotate | Download | only in intltest

Lines Matching refs:NUM

770     Number num = df.parse(str, new ParsePosition(0));
771 if (num.doubleValue() != -9.223372036854776E16)
1325 Formattable num;
1326 fmt->parse(UnicodeString("abc3"), num, status);
1328 errln(UnicodeString("Bug 4052223 failed : can't parse string \"a\". Got ") /*+ num*/);
1382 double num = 1234.5;
1383 fmt->format(num, formatted, field);
1410 Formattable num;
1412 df->parse(text, num, pp);
1418 temp = df->format(num.getDouble(), temp, pos);
1419 //if (!num.toString().equals("1.222"))
1421 //errln("\"" + text + "\" is parsed as " + num);
1425 num, pp);
1427 temp = df->format(num.getDouble(), temp, pos);
1428 //if (!num.toString().equals("1.222"))
1489 Formattable num;
1490 df->parse(text, num, pos1);
1491 if (pos1 == ParsePosition(0)/*num != null*/) {
1492 errln(UnicodeString("Test Failed: \"") + text + "\" is parsed as " /*+ num*/);
1497 df->parse(UnicodeString("$"), num, pos2);
1498 if (pos2 == ParsePosition(0) /*num != null*/){
1499 errln(UnicodeString("Test Failed: \"$\" is parsed as ") /*+ num*/);
1922 UnicodeString("#.00 'num''ber'"), UnicodeString("''#.00''")
1933 Formattable num;
1935 nf->parse(out, num, pp);
1936 double val = num.getDouble();
1945 nf->parse(out2, num, pp);
1946 double val2 = num.getDouble();
2155 Formattable num;
2156 fmt->parse(s, num, status);
2158 if (num.getType() == Formattable::kDouble &&
2159 _u_abs(num.getDouble() - a) / a < 0.01) { // RT within 1%
2161 toString(num) + " ok");
2164 toString(num) + " FAIL");
2475 Formattable num;
2476 fmt->parse(str, num, status);
2478 if (num.getType() != Formattable::kLong &&
2479 num.getType() != Formattable::kDouble) {
2481 toString(num));
2483 double d = num.getType() == Formattable::kDouble ?
2484 num.getDouble() : (double) num.getLong();
2488 ") => " + toString(num));
2557 const double NUM[] = { -2.5, -1.5, -0.5, 0.5, 1.5, 2.5, 3.5, 4.5 };
2559 int32_t N = (int32_t)(sizeof(NUM) / sizeof(NUM[0]));
2565 fmt.format(NUM[i], str, pos);
2567 logln(UnicodeString("Ok ") + NUM[i] + " x 0. = " + str);
2569 errln(UnicodeString("FAIL ") + NUM[i] + " x 0. = " + str +