Special Insertion Editing
Special Insertion Editing
- Special insertion editing is used to insert the decimal-point while displaying the decimal values of a variable.
- It is very useful to display a decimal point of a decimal value.
- It is applicable for numeric-edited and external floating-point items.
Notes -
- It doesn't affect the value and only changes how the data is displayed.
- Editing characters are inserted at the specified position when a value is moved into the edited variable.
Special insertion editing symbols are -
- . - Inserts period. Represents the position of the decimal point.
Note! The length of the edited PIC clause may or may not be the same as the original PIC clause.
Examples -
Editng PICTURE | Input | Output |
---|---|---|
9(5)V9(2) | 123.45 | 0012345 |
9(5).9(2) | 123.45 | 00123.45 |
9999.9 | 123.45 | 0123.4 |
99.99 | 123.45 | 23.45 |
999.99 | 1234 | 234.00 |