DataTable dataTable = DataTable.create();
dataTable.addColumn(ColumnType.NUMBER);
dataTable.addRows(1);
dataTable.setValue(0, 0, -3.14159265);
Options options = Options.create();
options.setDecimalSymbol("_");
options.setFractionDigits(3);
options.setNegativeColor("red");
options.setNegativeParens(false);
options.setPrefix("$");
options.setSuffix("%");
NumberFormat formatter = NumberFormat.create(options);
formatter.format(dataTable, 0);
assertEquals("$-3_142%", dataTable.getFormattedValue(0, 0));
// TODO(zundel): Unit tests are curently broken with this assertion.