Integer Bitwise Operation

https://learninghub.kx.com/forums/topic/integer-bitwise-operation

Hello,

I would like to ask if there is any bitwise operator just like c/c++ in KDB/q+.

e.g.

1 | 2 = 3

1 & 2 = 0

Thanks,

Jacky


Hi @jackyyuk

At the minute, kdb+/q does not have built-in functions for bitwise and,or,xor operations. However please find below some discussions on this topic and solutions on how to provide bitwise operations.

Thanks,

Megan

Thanks so much