java.text.NumberFormat df = new java.text.DecimalFormat();
java.text.NumberFormat df = NumberFormat.getNumberInstance(Locale.ENGLISH);
    public void writeRecords(DbfTableModel model) throws IOException {        java.text.NumberFormat df = new java.text.DecimalFormat();        int rowCount = model.getRowCount();        int columnCount = model.getColumnCount();        for (int r = 0; r <= rowCount - 1; r++) {            _leos.writeByte(32);            for (int c = 0; c <= columnCount - 1; c++) {                byte type = model.getType(c);                String value = null;                if (type == DbfTableModel.TYPE_NUMERIC) {                    Object obj = model.getValueAt(r, c);                    if (obj instanceof Double) {                        // Why Number?                        //                         Number d = (Number)model.getValueAt(r, c);                        // This seems to sometimes write out                        // exponetial numbers, which is bad for                        // reading it back in.                        //                         value = ((Number)obj).toString();                        //                         value =                        // df.format(((Double)obj).doubleValue());                        value = "" + df.format(((Double) obj).doubleValue());                    } else {                        value = "";                    }                } else {                    value = (String) model.getValueAt(r, c);                }                int length = model.getLength(c);                _leos.writeString(value, length);            }        }    }