01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ADF (4)<br />

Format<br />

Comma<br />

Dollars and Cents<br />

Financial<br />

Fixed<br />

Percent<br />

Scientific<br />

(AT&T UNIX PC only )<br />

Meaning<br />

Fixed format with commas.<br />

Positive numbers are preceded with<br />

dollar sign. Negative numbers are<br />

enclosed in parentheses. Uses commas.<br />

Negative numbers are in parentheses.<br />

Fixed format without commas.<br />

Per cent.<br />

Scientific notation.<br />

ADF(4)<br />

If no FORMAT token is present, the format is determined by the<br />

global format. The DECIMALS token specifies the number of<br />

characters to be displayed following the decimal point. If no<br />

DECIMALS token is present, the number of decimal places is<br />

determined by the global decimal places.<br />

The FORMULA data type has the following format:<br />

FORMULA {<br />

NAME \EOT\<br />

LOCK<br />

INVISIBLE<br />

FORMAT <br />

DECIMALS <br />

TEXT \EOT\<br />

<br />

}<br />

The tokens following the FORMULA keyword must all be<br />

specified exactly once for each FORMULA. The only required<br />

tokens are integer or floating point number and TEXT. With the<br />

exception of the TEXT token, a FORMULA has all of the same<br />

tokens that a VALUE has.<br />

The TEXT token is used to specify the text of the formula. The<br />

exact syntax of formula text is determined by the FORMULA­<br />

TYPE keyword in the TABLEDEF data type. Applications which<br />

are able to understand the text of a formula should parse the formula,<br />

and then store the formula in their own internal format.<br />

The value of the formula should be determined by having the<br />

application evaluate the formula, not by the number in integer or<br />

floating point number. Applications which do not understand the<br />

text of a formula should ignore the formula text and treat this<br />

data type like a VALUE data type.<br />

Compound Data Types<br />

The data types in this section are composed of lists of the already<br />

defined basic data types. The following compound data types are<br />

defined:<br />

- 8 -

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

Saved successfully!

Ooh no, something went wrong!