List of usage examples for org.apache.poi.ss.usermodel DataFormatter setExcelStyleRoundingMode
public static void setExcelStyleRoundingMode(DecimalFormat format)
From source file:org.apache.tika.parser.microsoft.TikaExcelGeneralFormat.java
License:Apache License
public TikaExcelGeneralFormat(final Locale locale) { decimalSymbols = DecimalFormatSymbols.getInstance(locale); scientificFormat = new DecimalFormat("0.##############E0", decimalSymbols); DataFormatter.setExcelStyleRoundingMode(scientificFormat); integerFormat = new DecimalFormat("#", decimalSymbols); DataFormatter.setExcelStyleRoundingMode(integerFormat); decimalFormat = new DecimalFormat("#.##########", decimalSymbols); DataFormatter.setExcelStyleRoundingMode(decimalFormat); }