What is a packed decimal?

Showing Answers 1 - 1 of 1 Answers

Saradha

  • Oct 13th, 2005
 

Commonly, 1 byte of space is assigned to each digit/char.

But if declared as 'Packed Decimal' (also known as COMP-3), then 2 digit occupy only 1 byte.

i.e if X = 78, then only 1 byte is assigned to X, rather than 2 bytes space.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions