The P type is a decimal value. Let's look at a definition first.
G_p17 type p decimals 2.
Here, g_p17 has 17 digits (13-digit integer, 1 decimal point, 2 decimal places, and 1 plus or minus sign ).
P --> C
When creating some interface files, such as TXT and EXCEL, we may want to forcibly convert g_p to type C data. At this time, the definition of C should be 17 bits.
G_c17 TYPE CHAR17.
And then convert it. The following shows a simple result.
-------------------------
P --> N
P ---> N if P is forcibly assigned to it, the positive and negative signs are removed and automatically rounded.
---------------------------------------------------
2. The N type is full-data without characters (including decimal points), and the leading 0 is automatically added.
-------------------------------
C --> N
C ---> if N is forcibly assigned to it, it is automatically filtered.
This method can be used to retrieve data from characters.