title: how to declare decimal numbers correctly in COBOL so that they can be used for arithmetic computation?
body: <p><strong>is there something wrong with the declaration of the decimal numbers.
       I wanted to perform decimal addition and subtraction in COBOL.</strong></p>
  
  <p><a href="http://www.compileonline.com/compile_cobol_online.php--" rel="nofollow">http://www.compileonline.com/compile_cobol_online.php--</a>> i used this website for my code given below</p>
  
  <pre><code> IDENTIFICATION DIVISION.  
  
   PROGRAM-ID. HELLO-WORLD.
  
   DATA DIVISION.
  
   WORKING-STORAGE SECTION.
  
   01  A   PIC 99V99 VALUE 1011.
  
   01  B   PIC 99V99 VALUE 2022.
  
   01  C   PIC 99V99 VALUE 3333.
  
   PROCEDURE DIVISION.
  
   ADD A TO B GIVING C.
  
   DISPLAY C.
  
   SUBTRACT A FROM B GIVING C ROUNDED.
  
   DISPLAY C.
  
   DISPLAY B.
  
   STOP RUN.
  </code></pre>