什么是定点整数? [英] What is a fixed point integer?

查看:185
本文介绍了什么是定点整数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://microformats.org/wiki/hreview-aggregate

它说:

评分.必需的.定点整数[1.0-5.0],具有可选的最差整数(默认值:1.0)和/或最佳整数(默认值:5.0),还有定点整数和显式平均值.

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.

什么是定点整数?也许这意味着整数?为什么1.0或2.5或5.0也称为定点整数"?因为整数没有小数部分.

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.

推荐答案

正如cdhowie所说,它们可能表示定点 number

As cdhowie said, they likely mean fixed point number

要通过对原始语句的调整来回答您的问题,定点数是一个具有有限十进制精度的数字.此精度得到保证.无论您是否知道,浮点数都使用复杂的近似系统存储该值,这会导致您有时看到有趣的结果.例如1.01实际评估为1.00999999999999998

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.

您可以在此处找到有关定点值的理论和实现的更多信息: http://en.wikipedia.org/wiki/Fixed-point_arithmetic

You can find more information on theory and implementation of fixed point values here: http://en.wikipedia.org/wiki/Fixed-point_arithmetic

这篇关于什么是定点整数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆