Representation of integers in Excel 2010 vs Excel 2003 (C++ plugin)

一曲冷凌霜 提交于 2019-12-06 15:55:31

Excel does not hold integers internally - all numbers (integers, dates, times, currency etc) are held as doubles. So the Oper val.num is always a double, and an oper of xltypeNum is always a double.
(Opers can hold integers in val.w but only as part of things like XLM Macro flow control which have been obsolete for decades and are unlikely to be met in practice).
I don't know why you get 9.9999999 in Excel 2007 - how are you passing the value to the Oper?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!