Can someone explain me how to interpret values of pins that are shown in hardware simulator while testing gates with multiple bit input? For example:

why input 0001 0010 0011 0100 corresponds with value 4660, input 1001 1000 0111 0110 corresponds with value -26506 and value of output is 4148? I am also curious what "%B" means in the script.