use of android.icu.text.ScientificNumberFormatter in project j2objc by google.
the class ScientificNumberFormatterTest method TestFixedDecimalMarkup.
@Test
public void TestFixedDecimalMarkup() {
DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH);
ScientificNumberFormatter fmt = ScientificNumberFormatter.getMarkupInstance(decfmt, "<sup>", "</sup>");
assertEquals("", "123,456", fmt.format(123456.0));
}
Aggregations