ULP(常写作 ulp)指“末位单位”(unit in the last place):在浮点数表示中,某个数值最后一位有效数字所对应的最小变化量。常用于衡量舍入误差或两个浮点结果之间的差异(“相差多少个 ulp”)。
/ʌlp/
The two results differ by only 1 ulp.
这两个结果只相差 1 个末位单位(ulp)。
Even if the absolute error looks tiny, an error of several ulps can signal a rounding problem in floating-point computations.
即使绝对误差看起来很小,若误差达到好几个 ulp,也可能说明浮点计算中存在舍入问题。
ULP是由短语 unit in the last place 的首字母缩写形成的技术术语,源自数值分析与计算机科学领域对浮点数精度与舍入行为的讨论,尤其常见于 IEEE 754 浮点标准相关语境。