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

PROC Call<br />

The parameter x specifies the total number of character positions to be occupied by the<br />

edited number, including signs, digits, decimal point, and exponent character. If the<br />

edited numbers require more character positions than specified by the value of x, the<br />

parameter x is ignored, and the required character positions are used.<br />

The parameter y specifies the total number of mantissa digits to appear in the edited<br />

number. It includes the digits on both sides of the decimal point but not the decimal<br />

point itself. The placement of the decimal point within the y digits of the mantissa is<br />

determined by the value in the packet cell FPS. This is the number of digits to appear to<br />

the left of the decimal point. It is normally set to one.<br />

Table 8–4 describes the floating-point editing routines.<br />

Table 8–4. EDIT$F–Floating-Point Editing Routines<br />

Generated<br />

Instructions<br />

E$FLF1 x*/6+y,p LA A1,p<br />

LA,U A0,x*/6+y<br />

LMJ X11,EFLF1$<br />

E$FLF2 x*/6+y,p DL A1,p<br />

LA,U A0,x*/6+y<br />

LMJ X11,EFLF2$<br />

E$FLG1 x*/6+y,p LA A1,p<br />

LA,U A0,x*/6+y<br />

LMJ X11,EFLG1$<br />

E$FLG2 x*/6+y,p DL A1,p<br />

LA,U A0,x*/6+y<br />

LMJ X11,EFLG2$<br />

E$FLS1 x*/6+y,p LA A1,p<br />

LA,U A0,x*/6+y<br />

LMJ X11,EFLS1$<br />

E$FLS2 x*/6+y,p DL A1,p<br />

LA,U A0,x*/6+y<br />

LMJ X11,EFLS2$<br />

Description<br />

Single-precision fixed decimal format.<br />

A1 is edited to fixed decimal format with y digits following the<br />

decimal point, right-justified, in a field of size x.<br />

Double-precision fixed decimal format.<br />

A1, A2 is edited to fixed decimal format with y digits following<br />

the decimal point, right-justified, in a field of size x.<br />

Single-precision generalized format.<br />

Same as scientific format except that an attempt is made to<br />

move the decimal point in such a way as to reduce the<br />

exponent to zero. If this can be done, the exponent is set to<br />

blanks. Otherwise scientific format is used.<br />

Double-precision generalized format.<br />

See EFLG1$ and EFLS2$.<br />

Single-precision, scientific format.<br />

A1 is edited to scientific format with y significant digits in a<br />

field size of x. The exponent is 2 digits long.<br />

Double-precision, scientific format.<br />

A1, A2 is edited to scientific format with y significant digits in<br />

a field size of x. The exponent is 3 digits long.<br />

8–10 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!