摘要
在DCS中,主控单元模块的数据存储资源有限,为了节省数据的存储空间,开发算法块时尽可能使用低精度的数据类型。由于浮点运算超过精度能表示的范围就需要近似或舍入,这样就会产生误差,对于一些涉及到复杂运算的算法,数据精度不足有时会造成算法计算错误。所以在算法测试过程中,应包含数据精度方面的测试。
The data storage resources of the MCU of the DCS are limited.In order to save data storage space,algorithm blocks are developed using low precision data types if possible.In computer,floating-point describes method of representing an approximation of a real number in a way that can support a wide range of values.Floating-point can not exactly represent any real numbers because of its precision problem,thus its operation can cause round-off error.For some blocks which contain complex calculations,their operations sometimes severely deviate from desired results because of the small round- off errors caused by finite-precision floating-point numbers.So the test for algorithm blocks should contain precision test.
出处
《工业控制计算机》
2014年第1期42-43,共2页
Industrial Control Computer
关键词
浮点数
数据精度
DCS,floating-point,data precision