The denominator is reduced, which is equivalent to moving left.
---------------------------------------------------------
Statement:
This article is original. You are welcome to reprint it. Please keep the following information for reprinting.
Author: afreez Beijing-Zhongguancun
Contact: afreez.gan@gmail.com (welcome to contact the author)
Initial Release Date: 2006-12-06
Without my consent, I shall not use words for commercial or profit purposes. Otherwise, the author has the right to pursue relevant responsibilities!
---------------------------------------------------------
A = 1-B/C;
| B | <POW (2, 23)
| C | = POW (2, 26)
| A | <1
During the operation, you need to convert the operation to a fixed point operation.
I thought about how to ensure the accuracy of a after two days, because a may be small.
A <= 8;
The accuracy of a cannot be guaranteed.
When I was about to leave work today, I suddenly had the opportunity:
C >>=6;
B <= 8;
A = 1 <14-b/C; // equivalent to a <14, ensuring the accuracy of
The numerator cannot shift too many places to the left, and the denominator shifts right to solve the problem.
Divergent thinking is easy to say and difficult to do!