Delta AH500 — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions 1 S2 12 +1 S2 4 +2 S2 E ( S1+1,S1) - 1 2 3 4 5 + 0 1 . 6 7 Sign ( Integer) Becoming 16#20 Automatically stored The floating-point number is rounded off, and the redundant characters are deleted. Sign ( Exponent) Two characters Example 1: Suppose the value in D4 is 0. The floating-point number in (D1, D0) is converted into the decimal format of the string. b15 b0 b7 b8 0 7 D4 Number of characters Decimal form at D10 3 0 0 2 3 D5 D6 Number of decimal places . D11 D12 (D1,D0) D13 Automatically stored at the end of the string Example 2: Suppose the value in D4 is 1. The floating-point number in (D1, D0) is converted into the exponential format of the string.

D10 D11 b15 b0 b7 b8 D4 D5 12 1 Number of characters Exponential foramt D12 D6 4 3 2 7 4 6 - 0 2 D1 Number of decimal places D0 . E D13 D14 Sign ( Integer) Sign ( Exponent) D16 D15 Automatically stored at the end of the string Additional remark: 1. If the value in S 1 exceeds the range of values which can be represented by the floating-point numbers, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013. 2. If the value in S 2 is neither 0 nor 1, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3.

If the value in S 2 +1 exceeds the range below, the instruction is not executed, SM0 is ON, and 6-471 -12.3 4567 16#20( ) 16#20( ) 16#2E(.) 16#30(0) 16#33(3) 16#30(0) 16#00 16#33(3) 0.0 32 7457 16#20( ) 16#20( ) 16#2E(.) 16#33(3) 16#37(7) 16#32(2) 16#36(6) 16#34(4) 16#2D(-) 16#45(E) 16#32(2) 16#30(0) 16#00 0.03 27 457