My program has two vars named: IP and MASK. Those variables contain numbers in binary format, for instance: IP = "11100001" and MASK = "11000000".
I'm performing an AND operation like this:
result = IP & MASK.
This should give: 11000000, but instead returns 10573888.
How can I make AND operations and keep the number in decimal?
I've looked around stackoverflow.com but I haven't found any similar situation, the only thing I've came across is to do manually an "algorithm" that performs this operation.