Changeset 7658


Ignore:
Timestamp:
Mar 19, 2019, 2:44:57 PM (4 years ago)
Author:
Nicklas Nordborg
Message:

References #2161: Import data from Excel files

The number formatter was swallowing all decimals except one. Adding more # to the format pattern should fix this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/util/NumberFormatUtil.java

    r7510 r7658  
    4343    sym.setExponentSeparator("E");
    4444    sym.setMinusSign('-');
    45     DecimalFormat df = new DecimalFormat("0.#", sym);
     45    DecimalFormat df = new DecimalFormat("0.#################", sym);
    4646    df.setParseIntegerOnly(false);
    4747    return df;
Note: See TracChangeset for help on using the changeset viewer.