I've a little problem with a double value in my excel sheet.
The double value is the result of a macro computation.
It is displayed into the cell as 1.0554
.
The cell format is Number with 4 decimal points displayed. If I choose more decimal, it will be displayed with trailing 0s (E.G. 1.05540000
).
My problem is I'm reading this file with jxls (which is using Apache POI), and the value I'm getting is not 1.0554
but 1.0554000000000001
(the last 1 is at the 16th digit).
I've convert my xls to xlsx, check directly inside the xlsx (which is a zip file containing xml files, so ascii file) and the saved value is 1.0554000000000001
; but even if I format my cell as a number with 32 decimal, excel still displays 1.0554000...000
without any trailing 1.
So I suppose that in xls, the real number is also saved as 1.0554000000000001 and not 1.0554.
So how to display in excel the real raw value? or to force excel to save 1.0554 instead of 1.05540000...01? Or to check with macro that the display value is not the raw value?...