The input number must contain only zeros and ones and be less than 10 characters long, otherwise the function returns the #NUM! error value.
The first bit of the binary number indicates whether the number is positive or negative. The other nine digits represent the size of the number, the max of which is 511 (2^9 - 1). A negative binary number is expected to use the two's complement notation.