Does the code avoid comparing floating - point numbers for equality?
代码是否避免了用 浮点数 来作相等的比较?
互联网
Any rounding or truncation of floating - point numbers is implementation defined.
任何四舍五入或 浮点数 的舍去是实作自订的.
互联网
Be aware, however, that the comparison of floating - point numbers is very strict.
但要注意, 对浮点数字的比较是非常严格的.
互联网
The number of significant digits displayed in floating point numbers.
浮点类型数显示时的有效位数.
互联网
Conversions from floating - point numbers to integer values truncate the number toward zero.
从 浮点数 向整数值的转换将向零截断数字.
互联网
Moreover, digital filtering requires calculations on integers instead of on floating - point numbers.
而且, 数字滤波需要计算整形数,而不是浮点数.
互联网
Like integers, floating point numbers can overflow.
像整数一样, 浮点数也会溢出.
互联网
Note that since floating - point numbers have limited precision, calculations involving them can accumulate small rounding errors.
请注意,由于 浮点数 的精度有限, 涉及浮点数的计算可以累积次要的舍入错误.
互联网