Delta DVP-ES3 — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions 7. Exponential format ( S 2 =1) After conversion, the floating-point string in the device D. .  The value in S 2 +1 must be between 2 ≦ S2+1 ≦ 20; the sign (+,-) and the digits in an integer and decimal number are included but the decimal point in the decimal number and the exponent number are not included. After calculation, the length adds the exponents (four digits) and the decimal point of the decimal number.  The number of character in the area for the integer is one digit.  The number of character in the area for the exponent is four characters. 6_ If the exponent is a positive number, the instruction adds 16#2B (+) in the area for exponent in D .

If the exponent is a negative number, the instruction adds 16#2D (-) in the area for exponent in D . The number of character in the area for the exponent is two digits. If there is only one digit in the conversion result, the instruction adds 16#30 (0) as the first digit of the area for the exponent.  Example 123456. The calculation is as follows. Suppose the number of characters is eight.

Two floating-point numbers examples are -123.456789 and 6-653 Floating-point number 0.00001234 D number D 16#2E (.) 16#31 (1) D + 1 16#33 (3) 16#32 (2) D + 2 16#45 (E) 16#34 (4) D + 3 16#30 (0) 16#2D (-) D + 4 16#00 ending character 16#35 (5) Sign Integer Decimal Exponential D number Floating-point number Floating-point number -123.456789 12345 High byte Low byte High byte Low byte D 16#31 (1) 16#2D (-) 16#2E (.) 16#31 (1) D + 1 16#32 (2) 16#2E (.) 16#33 (3) 16#32 (2) D + 2 16#34 (4) 16#33 (3) 16#35 (5) 16#34 (4)