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 Right Justify (MR)<br />

Syntax<br />

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

[$] [C] [Z] [(mask)]")<br />

Description<br />

The ICONV right-justify (MR) 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 Decimal number to be converted. num.expr can be any numeric value with<br />

or without a decimal.<br />

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

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

with the OCONV Right Justify (MR) function.<br />

ICONV Right Justify (MR) Parameters<br />

ICONV Right Justify (MR) 1-352

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

Saved successfully!

Ooh no, something went wrong!