摘要
为了获取Excel中存在不可见的浮点数误差的直接证据,采用不同构造方式在Excel中生成了“相同”的小数数列,分别使用“=”和MATCH函数比较了各数列中的数据在修约前后的一致性。通过拆解Excel工作簿文件,获取其内部存储的高精度数据,证明了Excel中的存储精度高于显示精度,这一精度差异在某些情况下会导致不可见的浮点数误差。
In order to obtain direct evidence of the existence of invisible floating-point number errors in Excel,different generation methods were applied to build“identical”decimal number sequences.“=”and MATCH function were used to compare the data in each sequence before and after rounding.High-precision data were obtained by disassembling the Excel workbook file.It is proved that Excel has a higher storage accuracy than display accuracy,which sometimes lead to invisible floating-point number errors.
作者
李镇冰
唐启奎
Li Zhenbing;Tang Qikui(Key Laboratory of Modernization Research of Traditional Chinese and Tibetan Medicine of Qinghai Province,Qinghai Institute for Drug Control,Xining 810016,Qinghai,China)
出处
《计算机应用与软件》
北大核心
2023年第8期92-97,共6页
Computer Applications and Software
基金
青海省药品检验检测平台项目(2017-ZJ-Y40)。
关键词
EXCEL
小数
浮点数
Excel
Decimal
Floating-point number