java - Are there any libraries for Apache POI Spreadsheets to handle r/w ing of formulas w/ more precision than double? -


Initially I was done with more functionality than after a baddick - - / / which is less than available on Java is. Lang.math

Please do not make any comment about sin and similar actions which do not necessarily generate or cause ineligible numbers, which is not a big fit. The simplest answer to that question is to use MathContext with the correct / sensible threshold I originally chose only BigDec, because it repeats exact digits.

I had an idea that the Apache PoE library is to be used, so it is expected that in this there can be an interface that works well with everyone (well but not many) functions Those who are found in a spreadsheet Unfortunately browsing javadoc I can not find anything similar to the interface / classes name.

  • Is there any other library that helps math on PoE excel cells, which uses more w / more precision than double?
  • Best of all, can I say that Apache Commons is using mathematics?
  • It seems that number related functions in org.apache.poi.hssf.record.formula.functions. * WorkW / Doubles only.

    Excel format stores all numbers internally as double, therefore, When you can calculate the answer to potentially high precision, if you store them back in the Axl file then you will lose it. In addition, if you have been exceled to calculate the value, then answer it Dual precision will be limited to

    If you want to evaluate the formula with POI, then it is mostly setup to evaluate the content, one option for a cell is to create a cell, set its formula in it, then evaluate it . For details.

    org.apache.poi.ss.formula.functions package contains all Excel formula functions implementations that support Poi, but this may have a little lower level You (they work on PTGs, Ops etc)

Comments