hi,
i have a variable A (FOR EXAMPLE =1.25)
i need to get the decimal portion of A.
i did this:
05 A PIC 9(08)v99.
05 B redefines A.
10 B-WHOLE PIC 9(08).
10 B-DECIMAL PIC 9(02).
move A to B.
move B-decimal to A.
result:
A= 01 instead of 25 ???
what is the problem ?
thanks
i have a variable A (FOR EXAMPLE =1.25)
i need to get the decimal portion of A.
i did this:
05 A PIC 9(08)v99.
05 B redefines A.
10 B-WHOLE PIC 9(08).
10 B-DECIMAL PIC 9(02).
move A to B.
move B-decimal to A.
result:
A= 01 instead of 25 ???
what is the problem ?
thanks