什么是定点整数?
在 http://microformats.org/wiki/hreview-aggregate 中,
它说:
评级。必需的。定点整数 [1.0-5.0],具有可选的替代最差值(默认值:1.0)和/或最佳值(默认值:5.0),也是定点整数和显式平均值。
什么是定点整数?也许这意味着整数?为什么1.0或2.5或5.0也被称为“定点整数”?因为整数没有小数部分。
In http://microformats.org/wiki/hreview-aggregate
it says:
rating. required. fixed point integer [1.0-5.0], with optional alternate worst (default:1.0) and/or best (default:5.0), also fixed point integers, and explicit average.
What is a fixed point integer? Maybe that means integer? Why is 1.0 or 2.5 or 5.0 also called a "fixed point integer"? Because integer has no decimal part.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如 cdhowie 所说,它们可能意味着定点数数字
为了回答您对原始语句进行调整的问题,定点数是具有有限小数精度的数字。这个精度是有保证的。如果您可能知道也可能不知道,浮点数使用复杂的近似系统来存储值,这会导致您有时会看到有趣的结果。例如 1.01,实际评估为 1.00999999999999998
定点值保证了小数点后特定位数的精度。
您可以在此处找到有关定点值的理论和实现的更多信息:http://en.wikipedia。 org/wiki/Fixed-point_arithmetic
As cdhowie said, they likely mean fixed point number
To answer you question with that adjustment to the original statement, a fixed point number is one with a finite amount of decimal precision. This precision is guaranteed. If you may or may not be aware, floating point numbers used a complex approximation system to store the value which leads to the interesting results you sometimes see. 1.01 for example actually evaluating as 1.00999999999999998
A fixed point value has guaranteed accuracy to a specific number of digits after the decimal.
You can find more information on theory and implementation of fixed point values here: http://en.wikipedia.org/wiki/Fixed-point_arithmetic
他们的术语是错误的。它们意味着定点数,而不是整数。
They have their terminology wrong. They meant fixed-point number, not integer.