bin2dec() Function

Converts a Binary number as text to a Decimal number.

Syntax

bin2dec( value, … )

value: (Text) Binary value as text to convert, such as 1100100.

Returns

Integer

Notes

Invalid digits for a value parameter, including signs, are ignored.

Examples

You can experiment with this function in the test box below.

Test Input

bin2dec(10000) returns 16

FEEDBACK