Functions

bindec

Supported By

Syntax

[the] bindec of factor

bindec ( expression )

Factor and expression yield strings.

Example

put bindec("1101001010011") into steve

Description

The bindec function converts a real or complex number in binary, or base two, to the same number in decimal, or base ten. For example, bindec("101010") gives 42.

See Also

decbin, bc, hexdec, octdec