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.

Parameter Description<br />

Example<br />

In the following example, UniData converts the value 12.339 to 1234 based on the<br />

MR2 conversion code:<br />

1-353 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

f Scales the input value expr by moving the decimal point f places to the right.<br />

If omitted, f defaults to the value assigned to n (for example, if you specify<br />

MR2, UniData reads it as MR22, and then ignores the first 2).<br />

dec_symbl You can specify a symbol to represent the decimal point in the input number<br />

by including dec_symbl. An example is provided in the following section.<br />

[prefix],<br />

[thsnd_mark],<br />

[suffix] [,] [$]<br />

[C] [Z]<br />

[(mask)]<br />

INTERNAL.NUM = ICONV("12.339","MR2")<br />

The following example demonstrates how to specify that an alternate symbol is used<br />

to represent the decimal point in the input number. This example prints 12350.<br />

PRINT ICONV("123@499","MR2[,,@]")<br />

END<br />

Related Command<br />

<strong>UniBasic</strong><br />

OCONV Right Justify (MR)<br />

The ICONV function ignores these options, but they are included in the<br />

syntax to maintain consistency with the OCONV Right Justify (MR)<br />

function.<br />

ICONV Right Justify (MR) Parameters (continued)

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

Saved successfully!

Ooh no, something went wrong!