-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
INT(1.99) doesn't return correct rounded value #983
Comments
NumericCellValue不负责计算公式,那是单元格的原始值,含公式的计算结果你得用FormulaEvaluator。 |
不,是这样的。 |
DataTable dt = new DataTable();
|
The current logic of INT function:
|
那这个向下取整的方法就是有问题的啊。按照你这个方法 |
一般一个版本发布至少4-6个月,等不急的话,建议换其他库,谢谢。 |
Since excel INT function definition is "Rounds a number down to the nearest integer", should we change the function to Math.Floor
|
PR is welcomed |
fix issue #983 INT(1.99) doesn't return correct rounded value
XSSFWorkbook,INT函数,在使用NumericCellValue获取公式值的时候,不会舍弃小数,例如1.99 在使用函数会取到2,但是1.9是正常的
但是在保存成excel的时候没问题。在使用NPOI创建XSSFWorkbook,并且给单元格赋公式取值的时候出现,超过1位小数且小数的结尾数字是9的时候
The text was updated successfully, but these errors were encountered: