toDecimal()
toDecimal(string $value) : string
toDecimal.
Return a binary value as decimal.
Excel Function: BIN2DEC(x)
Parameters
string | $value | The binary number (as a string) that you want to convert. The number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is not a valid binary number, or if number contains more than 10 characters (10 bits), BIN2DEC returns the #NUM! error value. |