Question:Referring to the above example, what one advantage does PACKED-DECIMAL have over BINARY?
PAY-RECORD is smaller than if it used BINARY fields.
PACKED-DECIMAL fields use less storage.
PACKED-DECIMAL arithmetic has greater precision.
PACKED-DECIMAL instructions execute faster.
Digits and signs are verified for each PACKED-DECIMAL operation.
I've read the article.
There is no obvious answer to the question.
In another URL
I get to know that choice 2 is wrong.
But I still not sure 1 or 3 is correct.
The choice 4 must be wrong, because the binary execute the fastest.
The choice 5 is also wrong.
The choice 1, if COMP-3, PAY-RECORD is 9+3+5+10=27;
if BINARY, PAY-RECORD is 9+3+3+6=21.
so choice 1 should be right.
the choice 3, I remember that I ever read that PACKED-DECIMAL has more precision.
So...I am not very confirm whether the answer should be 1 or 3.
Choice 3: PACKED-DECIMAL arithmetic has greater precision.
my doubt is arithmetic precision inclues (,),+,/,*,- also.. so may be the choice 3 right.. let us make clear the answer and again let us discuss..