Convert from binary to decimal

(1000)2 - (0011)2 = (?)10

You have

2^3 - (2^1+2^0) = 8-3 = 5

If you have linux, or cygwin, you can run

bc

and enter ibase=2

then just type in the binary numbers, and the output will be decimal.