'Convert signed 24 bit number to signed 20 bit number
How can I convert signed 24 bit number to signed 20 bit number assuming after conversion number will fit into 20 bits. Most of the answer I found try to extend the bit but I am trying to contract the bit. Looking for answer using bitwise operation or bit manipulation or bit shifting.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
