How to get cell's Precision

cell.getStyle().getCustom() result is ""

is there any way to read the cell properties like precision

Hi Wu,

Thank you for contacting Aspose support.

First of all, please note that Aspose.Cells APIs do not provide any means to get the cell’s precision therefore you have to write your own custom logic to detect it. Moreover, only when the cell’s style is set as built-in number format, the corresponding Style.Number is not 0, however if cell style is set using the custom pattern, the Style.Custom will give the custom formatting pattern and Style.Number is useless with value 0. Based on these facts, you should first check if Style.Custom is empty, if yes then check the Style.Number value.