How to print decimal points in cobol?
1 answer
V
in 99V99
is just an "invisible" decimal point that sets the correct alignment for any fixed point operations. This has the advantage of not requiring additional memory. If you want the displayed comma to use PIC
-clause as 99.99
that would
- take another byte
- only works with
USAGE DISPLAY
, notCOMP
-fields
Note. When using, DECIMAL-POINT IS COMMA
you need to change PIC
-clause accordingly to:PIC 99,99
+4
source to share