c程序设计中碰到的英译汉问题

来源:百度知道 编辑:UC知道 时间:2024/06/17 05:12:59
这是一个美国核工业软件标准中关于c/c++部分的一段,不知道什么意思,大家帮帮忙翻译一下
Account for floating point properties in relational operations. The equality comparisons on floating-point numbers should be avoided in safety systems since the machine representation of floating-point numbers may lack precision and may have a small residual error. Inequality comparisons should be utilized and equality comparisons should be avoided on floating-point numbers。

下面是翻译,本人英语能力有限,可能不太准确

对于浮点数在关系表达式中的说明。浮点数的相等比较(==)应该尽量减少使用,因为计算机对浮点数的表达方式会缺少精确度,引起很小的误差错误。

不等比较应该被利用,而相等比较应该避免应用于浮点数