Cobol Question:
Download Questions PDF

How is sign stored in a comp-3 field?


It is stored in the last nibble. For example if your number is +100, it stores hex 0C in the last byte, hex 1C if your number is 101, hex 2C if your number is 102, hex 1D if the number is -101, hex 2D if the number is -102 etc…

Download Cobol Interview Questions And Answers PDF

Previous QuestionNext Question
How is sign stored in a COMP field?How is sign stored in Packed Decimal fields and Zoned Decimal fields?