`prev Menu next`

Bit Pattern

Bit Pattern Functions

BVAL(a$,2) | The non-negative integer whose binary representation is a$.
BVAL(a$,16) | The non-negative integer whose hexadecimal representation is a$.
BSTR$(n,2) | Binary representation of a non-negative number n.
BSTR$(n,16) | hexadecimal representation of a non-negative number n.

The argument of BSTR$ is rounded to an integer. A negative argument of BSTR$ causes an exception of extype 4203.

(Note) BVAL and BSTR$ do not have satisfactory precision on the 1000-digit decimal mode and on the rational mode.