18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

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.

EDIT$–Fieldata Image Composition Editing Package<br />

Table 8–3. Time and Date Editing Routines<br />

PROC Call Generated Instructions Description<br />

E$DAT5 ER TDATE$<br />

LMJ X11,EDAY5$<br />

E$TIME p1 LA A0,p1<br />

LMJ X11,ETIME$<br />

E$TD ER TDATE$<br />

LMJ X11,ETIME$<br />

Edits the date portion of A0 into the format<br />

yymmdd<br />

where yy, mm, and dd are the 2 digits of the year, month, and<br />

day, respectively.<br />

Edits a time.<br />

Edits the time portion of A0 into the format<br />

hh:mm:ss<br />

where hh, mm, and ss are the 2 digits of the hours, minutes,<br />

and seconds of the time, respectively.<br />

8.4. EDIT$F–Floating-Point Editing Routines<br />

The floating-point editing routines require three parameters in addition to the address of<br />

the floating-point packet. The first two are called x and y and are supplied in S5 and S6<br />

of A0. These parameters specify the format of the edited number as described below.<br />

The third parameter is the single- or double-precision number to be edited. If singleprecision,<br />

the number is specified in A1; if double-precision, the number is specified in<br />

A1 and A2.<br />

Edited numbers may appear in one of the two general formats: fixed-decimal format<br />

(no exponent) and scientific format. A number edited in fixed-decimal format consists of<br />

a sign (if negative) followed by the digits of the number and an embedded decimal point.<br />

The sign is present only if the number is negative; a positive number has no sign<br />

character.<br />

The parameter x specifies the width of the edited field, or the number of character<br />

positions the edited number will occupy, including sign and decimal point. If the value of<br />

x is too small to represent the value being edited, it is ignored, and as many character<br />

positions as necessary are used to correctly represent the number.<br />

The parameter y specifies how many fractional digits will be edited. This is the number<br />

of digits appearing to the right of the decimal point. The value of y may be any value<br />

greater than or equal to zero, but should always be less than the value of x to allow for<br />

the sign and decimal point characters.<br />

The scientific format is similar to the fixed-decimal format but has an exponent at the<br />

right. The exponent consists of an optional exponent character (usually 'E' for<br />

single-precision and 'D' for double-precision numbers) followed by the exponent's sign<br />

(either "+" or "-") and digits. Exponents of single-precision numbers are always edited as<br />

a 2-digit value, and those of double-precision numbers are always edited as a 3-digit<br />

value.<br />

7833 1733–004 8–9

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

Saved successfully!

Ooh no, something went wrong!