Fixed-point precision, why half?
显示 更早的评论
In reading the Mathworks documentation. I really don't understand why fixed-point fractional precison is half of (1/2^FL) instead of (1/2^FL).
Can anyone please kindly comment on this.
From the fixed-point toolbox documentation
Precision The precision of a fixed-point number is the difference between successive values representable by its data type and scaling, which is equal to the value of its least significant bit. The value of the least significant bit, and therefore the precision of the number, is determined by the number of fractional bits. A fixed-point value can be represented to within half of the precision of its data type and scaling.
For example, a fixed-point representation with four bits to the right of the binary point has a precision of 2^4 or 0.0625, which is the value of its least significant bit. Any number within the range of this data type and scaling can be represented to within (2^4)/2 or 0.03125, which is half the precision. This is an example of representing a number with finite precision.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Fixed-Point Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!