Hello,
I am using apache POI library to read Excel files from a Java program. I have the following issue with reading numbers :
I have the cell D5 that contains the formula "=3000000/D10" and D10 cell contains the formula "=1.41973/1.2939". When I read this cell within VBA macro like this : Worksheets("My sheet").Cells(5, 4), I get 2734111.41555084 but when I read it via openxml, the cell contains here 2734111.4155508447 (see the extra 47), which is wrong. I expect to get the same result as VBA gives.
So I've asked the POI team directly here but it happens that they use openxml and actually just read "correctly" what is being returned by Open XML. I could indeed reproduce the issue by reading the same file in VS with c# and directly with openxml sdk.
As microsoft states here, we understand that Excel never gives more than 15 digits, so neither should openxml. With more than 15 '#', it should only add non-significative zeros.But in my case openxml gives 17 digits (2734111.4155508447) instead of the 15 that I am talking about (2734111.41555084).
Can this be corrected please ?
Regards,