If for example two numbers are multiplicated, one is in 8.24 format and second is in 2.30 format, product of those two is number with format 10.54, how to go back to 32bit fixed point format?
Asked
Active
Viewed 88 times
1 Answers
0
The same way rounding always works. Remove the trailing 32 digits. Either by actual rounding, or simple truncation. In any way you should arrive at a 10.22 number.
Simon
- 5,061
-
so you say that if I for example multiplicate 32.0 with 1.31, that will give 33.32 format, so i will need just one shift right to get 1.31? – Laki Mar 23 '17 at 11:33
-
no. You can not express a 33.32-number in 1.31. Thats just not possible with any rounding. – Simon Mar 23 '17 at 11:35