BIN2DEC

Converts a binary number to its corresponding decimal value.

Syntax:

BIN2DEC( number )

number may be a string, or a number, of up to ten binary digits.

Two's complement representation is used: the highest (tenth) bit is the sign bit of the binary number.

Examples:

BIN2DEC("10000")

returns the number 16.

BIN2DEC("1111111111")

returns the number -1.

Revisions:

This function was added in Fireworkz 2.24.