11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ICONV Masked Decimal (MD)<br />

Syntax<br />

ICONV(num.expr, "MDn [f] [ [ [prefix], [thsnd_mark], [dec_symbl], [suffix] ] ]<br />

[,] [$] [-| < | E | C | D] [P] [Z] [T] [xc]")<br />

Description<br />

The ICONV masked decimal (MD) function converts a decimal number to internal<br />

format after rounding, as specified by f. If the input value or conversion code is<br />

invalid, UniData returns the input value.<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 />

The ICONV MD, ML, and MR functions have the same result. They exist separately<br />

to maintain consistency with the OCONV MD, ML, and MR functions, which produce<br />

different results.<br />

Parameters<br />

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

Parameter Description<br />

num.expr The decimal number to be converted. num.expr can be any numeric value<br />

with or without a decimal.<br />

n The ICONV function ignores n (for example, if you specify MD32, UniData<br />

ignores the 3), but it is included in the syntax to maintain consistency with<br />

the OCONV Masked Decimal (MD) function.<br />

ICONV Masked Decimal (MD) Parameters<br />

ICONV Masked Decimal (MD) 1-346

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

Saved successfully!

Ooh no, something went wrong!