??? 07/17/12 04:25 Read: times |
#187955 - Guard digits? Responding to: ???'s previous message |
It sounds to me like you are lacking guard digits. These are the extra digits (or bits when thinking in binary) that preserve the accuracy of your intermediate variables. If you are using all 16 bits then you don't have any guard bits available, and whether you use a divide instruction or a shift instruction doesn't affect the result.
Adding 0.5 lsbs before rounding changes your code from biased rounding to unbiased rounding, but you need somewher to store that 0.5 lsb. |
Topic | Author | Date |
Right Shift Rounding Recommendations | 01/01/70 00:00 | |
add before shift | 01/01/70 00:00 | |
Guard digits? | 01/01/70 00:00 | |
How does this look? | 01/01/70 00:00 | |
Nice but.. | 01/01/70 00:00 | |
Please elaborate further. | 01/01/70 00:00 | |
01/01/70 00:00 | ||
I do not know how you managed, but | 01/01/70 00:00 | |
breaking the rules, one forum at a time . . . | 01/01/70 00:00 |