Logical left shift and truncate bit length
33 views (last 30 days)
I need to convert a decimal number to binary and perform a left shift operation.
Ex: If the decimal is 135, its binary is '1000 0111'. After left shift I need '0000 1110'. The bitshift() is giving '1000 01110'. How can I truncate this to remove the msb?