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.

Some parameters set the same values. Results are unpredictable if you make<br />

conflicting assignments.<br />

Parameter Description<br />

str.exp Indicates a text string or number to be right-justified and formatted.<br />

n Sets precision (number of decimal places represented). It can be a<br />

number from 0 through 9. If n is less than the number of decimal points<br />

in the input data, the resulting value is rounded.<br />

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

to the left. If omitted, f defaults to the value assigned to n (for example,<br />

if you specify MR2, UniData reads it as MR22).<br />

[prefix],<br />

[thsnd_mark],<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, MR2[**] produces "**nnn...".<br />

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

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

double quotation marks to enclose the conversion code. For example, "<br />

MR2[,',' ]" produces "...,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, MR2[, , ,**] produces "...nnn**".<br />

, Inserts commas to separate thousands.<br />

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

C Specifies that a negative number is to be followed by CR, indicating a<br />

credit.<br />

Z Suppresses zeros.<br />

mask Specifies a mask to be used for formatting. Use # to represent number<br />

placement. Include special characters as desired.<br />

Results are adversely affected if the mask contradicts other parameters.<br />

For example, placement of the decimal in the mask overrides n.<br />

OCONV Right Justify (MR) Parameters<br />

If the conversion to display format is unsuccessful, UniData returns the original<br />

value.<br />

OCONV Right Justify (MR) 1-510

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

Saved successfully!

Ooh no, something went wrong!