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 />

prefix],<br />

[thsnd_mark]<br />

,<br />

[dec_symbl],<br />

[suffix]<br />

The square brackets enclosing these parameters are required.<br />

prefix – Nonnumeric character(s) to precede the formatted number. For<br />

example, MD2[**] produces "**nnn...".<br />

thsnd_mark – Nonnumeric character(s) to delimit thousands. To specify a<br />

comma, enclose it in single quotation marks, and then use double quotation<br />

marks to enclose the conversion code. For example, " MD2[,',' ]" produces<br />

"...,nnn,nnn".<br />

dec_symbl – Alternate symbol to represent the decimal point.<br />

suffix – Nonnumeric character(s) to follow the formatted number. For<br />

example, MD2[, , ,**] produces "...nnn**".<br />

, Inserts commas to separate thousands, millions, and so forth.<br />

$ Precedes the output with a dollar sign ($).<br />

- Specifies the negative sign (for negative data) to precede negative numbers.<br />

< or E Specifies that negative data is surrounded by brackets.<br />

C Specifies that negative data is followed by CR, indicating a credit.<br />

D Specifies that negative data is followed by DB, indicating a debit.<br />

P Specifies that no scaling is performed if a decimal is present in the input<br />

value.<br />

Z Specifies that zeros are to be suppressed.<br />

T Specifies that the number is to be truncated, not rounded to the number of<br />

decimal places specified in n.<br />

xc Specifies that the character c is used to fill spaces left to the left of the<br />

number after output data is formatted. x indicates the size of the mask.<br />

OCONV Masked Decimal (MD) Parameters (continued)<br />

OCONV Masked Decimal (MD) 1-502

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

Saved successfully!

Ooh no, something went wrong!