Lines Matching refs:nf
845 NumberFormat *nf = NumberFormat::createInstance(status);
851 roundingTest(*nf, 0.00159999, 4, "0.0016");
852 roundingTest(*nf, 0.00995, 4, "0.01");
854 roundingTest(*nf, 12.3995, 3, "12.4");
856 roundingTest(*nf, 12.4999, 0, "12");
857 roundingTest(*nf, - 19.5, 0, "-20");
858 delete nf;
963 NumberFormatTest::roundingTest(NumberFormat& nf, double x, int32_t maxFractionDigits, const char* expected)
965 nf.setMaximumFractionDigits(maxFractionDigits);
966 UnicodeString out; nf.format(x, out);
1416 NumberFormat* nf = NumberFormat::createCurrencyInstance(locs[i], ec);
1422 int32_t min = nf->getMinimumFractionDigits();
1423 int32_t max = nf->getMaximumFractionDigits();
1426 nf->format(1.0, a);
1427 nf->format(1.125, b);
1435 if (nf->getDynamicClassID() == DecimalFormat::getStaticClassID()) {
1436 DecimalFormat* df = (DecimalFormat*) nf;
1440 nf->format(1.0, a);
1449 delete nf;
2241 void NumberFormatTest::expectCurrency(NumberFormat& nf, const Locale& locale,
2244 DecimalFormat& fmt = * (DecimalFormat*) &nf;