我注意到,从转换double到long 改变的值时,要转换的数量是很大,即使是远低于最大值的long。例如,有人可以解释为什么这种转换不能按预期工作:
Convert.ToInt64(600000000000040000d)
// Return => 600000000000039936
Convert.ToInt64(600000000000040000L)
// Return => 600000000000040000
Run Code Online (Sandbox Code Playgroud)
这给我的公式带来了一些麻烦......谢谢。