【发布时间】:2019-08-15 08:35:42
【问题描述】:
使用DataTable.Compute,并构建了一些案例进行测试:
dt.Compute("0/0", null); //returns NaN when converted to double
dt.Compute("0/0.00", null); //results in DivideByZero exception
我已更改我的代码来处理这两个问题。但是很想知道这里发生了什么?
【问题讨论】:
标签: c# datatable double decimal formula