Delta AH500 — 6.21.2 Explanation of String Processing Instructions

AH500 Programming Manual 5. Exponential format S2 +1 S2 Number of characters Exponential format Number of decim al places +2 S2 b15 b0 b7 b8 D D+1 D+3 D+2 . E D+4 Sign( Integer) Sign ( Exponent) D+5 D+6 Automatically stored at the end of the string Suppose the number of characters is 12, the number of decimal places is 4, and the value is -12.34567. The calculation is as follows. (S1+1, S1) S2 +1 S2 +2 S2 b15 b0 b7 b8 D +2 D +1 D - 1 2 3 4 6 + 0 1 . E +3 D +4 D +5 D Sign( Integer) Sign ( Exponent) +6 D Automatically stored at the end of the string  The value in S 2 +1: (S1+1,S1) If the value in S 2 +2 is 0, the value in S 2 +1 should be within the range between 6 and 24.

If the value in S 2 +2 is not 0, the value in S 2 +1 should be within the range between the value in S 2 +2 plus 7 and 24.  The value in S 2 +2 should be within the range between 0 and 7. If the value in S 2 +2 is not 0, it should be less than or equal to the value in S 2 +1 minus 7.  If the floating-point number in S 1 is a positive number, the sign code in D is 16#20. If the floating-point number in S 1 is a negative number, the sign code in D is 16#2D.  The integer part contains one character. To fulfill the number of characters, the codes between the sign code and the integer part are 16#20.

 If the value in S 2 +2 is larger than 0, 16#2E (“.”) is stored in front of the specified character automatically.  If the exponent is a positive number, the sign code in D is 16#2B. If the exponent is a negative number, the sign code in D is 16#2D.  The exponent part contains two characters. If there is only one character, the other character is “0” (16#30).  The conversion result ends with 16#00.

6-470 First ASCII code Sign (Integer) Decimal point (.) Second A SCII code Fourth ASCII code Third AS CII code Sixth ASCII code Fifth ASCII code Sign (Exponent) 16#45(E) Second A SCII code First ASCII code 16#00 Floating- point number 1 12 4 16#20( ) 16#2D(-) 16#2E(.) 16#31(1) 16#33(3) 16#32(2) 16#35(5) 16#34(4) 16#2B(+) 16#45(E) 16#31(1) 16#30(0) 16#00 -12.3 4567 .3