且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么在将double转换为十进制时会得到InvalidCastException

更新时间:2023-11-20 20:15:10

Eric Lippert已经深入了解了这一点。我同意这是不直观的,但他解释得很好:表示和身份

Eric Lippert has blogged about exactly this in depth. I agree it's unintuitive at first, but he explains it well: Representation and Identity