Hi all, I have looked everywhere but I can not find an answer to this.
I have a single byte HEX value that I want to convert to binary (to read individual bits) is this possible with Xtend?
Hi all, I have looked everywhere but I can not find an answer to this.
I have a single byte HEX value that I want to convert to binary (to read individual bits) is this possible with Xtend?
You can certainly use Integer.bitwiseAnd() and Integer bitwiseOr() to manipulate bits
Are you saying you have a HEX character that you want to convert to an integer? If so, you can do that with:
var n = Integer::parseInt(hexchar, 16)
You can then use bitwise operations to check bits in the integer.