Fixed-Point Blockset | ![]() ![]() |
Division
Division of values is an operation that should be avoided in fixed-point embedded systems, but it can occur in places. Therefore, consider the division of two real-world values.
These values are represented by the general slope/bias encoding scheme described in Scaling.
In a fixed-point system, the division of values results in finding the variable Qa.
Inherited Scaling for Speed
The number of arithmetic operations can be reduced with these choices:
If , then no clear recommendation can be made.
Inherited Scaling for Maximum Precision
The maximum precision scaling can be determined if the range of the variable is known. As shown in Example: Maximizing Precision, the range of a fixed-point operation can be determined from and
. For division, the range can be determined from
where for nonzero denominators
Radix Point-Only Scaling
For radix point-only scaling, finding Qa results in this simple expression.
![]() | Gain | Summary | ![]() |