Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
不知何故,这种计算字符串的方法返回 8 而不是异常或其他东西......每隔一个除以 0 会产生相同的结果。为什么它不抛出错误,为什么结果总是 8?
System.Console.WriteLine(new DataTable().Compute("2/0", null));