摘要
对在VB程序设计中,时间日期进行差量计算或比较时存在误差的问题进行了分析、研究,通过把程序调试后时间日期变量的原始值复制出来进行计算、对比,研究得出误差产生的根本原因在于VB程序中时间、日期型数据的存储形式为IEEE 64位(8字节)浮点形式.
The problem of existing error when time and date are under difference calculation or com- parison in the design of vb program is analyzed and researched. Throuth copying the original value of variable after debugging the program to do calculation or comparison, the research shows that the basic reason of error in the date storing form of time and date in vb program is IEEE 64-bit (8 bytes) floating-point format.
出处
《河北北方学院学报(自然科学版)》
2010年第4期46-47,52,共3页
Journal of Hebei North University:Natural Science Edition