Function Block BIN2DEC

The Function Block BIN2DEC converts a binary value to a decimal value.

Input

The input expects a string or a number. The value must be binary. For example, "0000111101". Leading zeros are irrelevant.

Output

The output returns the decimal number as an Integer.