bin2dec() Function

Function

bin2dec( value )

Converts a Binary number as text to a Decimal number.

Parameters

Keyword Type Description

value

Text

Binary value as text to convert, such as 1100100.

Returns

Integer

Usage considerations

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

Open in Github Built: Fri, Nov 19, 2021 (11:59:11 AM)

On This Page

FEEDBACK