I played around with the bit-operators in PS7 and came upon a strange result:
001000000010 should become 001000000000 if xor-ed with 00000010, or am I getting sth wrong here?
I played around with the bit-operators in PS7 and came upon a strange result:
001000000010 should become 001000000000 if xor-ed with 00000010, or am I getting sth wrong here?
Hi, welcome to the forum
When posting code, please post it as text, formatted as code, not as a screenshot. It makes it much easier for us to copy and paste for testing.
How to format code on PowerShell.org
For your first value, you’ve used 0B
to specify a binary literal but you haven’t done that for your second one so it’s treating it as decimal 10, or 0B00001010
.
Ok, thanks a lot!
Best regards