MB

Converts binary numbers to decimal or an ASCII value, for storage, or vice versa, for output.

Syntax

MB [ 0C ]

0C converts the octal number to its equivalent ASCII character on input, and vice versa on output.

Remarks

Characters other than 0 and 1 cause an error.

Examples

The following examples show the effect of some MB conversion codes with the Iconv function:

Conversion Expression
Internal Value
X = Iconv("10000000000", "MB")
X = 1024
X = Iconv("010000110100010001000101", "MB0C")
X = "CDE"

The following examples show the effect of some MB conversion codes with the Oconv function:

Conversion Expression
External Value
X = Oconv("1024", "MB")
X = "10000000000"
X = Oconv("CDE", "MB0C")
X = "010000110100010001000101"