11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ICONV Hex (MX | HEX), Octal (MO), Binary<br />

(MB)<br />

Syntax<br />

ICONV(num.expr, ["HEX | MX [0C] | MO [0C] | MB [0C]"])<br />

Description<br />

The ICONV hex (MX), octal (MO), and binary (MB) functions convert a number<br />

from one of three numbering systems to decimal value. UniData returns the input<br />

value if either the value to be converted or the conversion code is invalid.<br />

Note: In BASICTYPE P, ICONV returns an empty string if UDT.OPTIONS 56 is on<br />

and the input value or conversion code is invalid.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

num.expr Specifies the decimal value, in display format, to convert to an alternate<br />

numbering system.<br />

HEX |<br />

MX [0C]<br />

Indicates conversion from hexadecimal (base 16). The optional 0C specifier<br />

converts into ASCII character rather than decimal value. HEX is equivalent<br />

to MX0C.<br />

MO [0C] Indicates conversion from octal (base 8). The optional 0C converts to ASCII<br />

character rather than decimal value.<br />

MB [0C] Indicates conversion from binary (base 2). The optional 0C converts to<br />

ASCII character rather than decimal value.<br />

ICONV Numbering System Conversion Parameters<br />

ICONV Hex (MX | HEX), Octal (MO), Binary (MB) 1-356

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!