Sorry but i'm not good at bit conversion. I need to convert decimal -> decimal by lower 16 bit, as this sample.
1:16777237 decimal = 1000015 hex
2:16 lower bits = 0015 hex (each digit in hexadecimal is 4 bits)
3: 0015 hex = 21 decimal (21 is the result i need)
Using
(16777237).toString(16);
i can get the 1000015 hex, my question is how, i get the lower bits as im, not that strong in bits. etc. the bedst way to get the result.