View previous topic :: View next topic
|
Author |
Message |
Naresh chinthaneppu
New User
Joined: 21 Jun 2007 Posts: 11 Location: pune
|
|
|
|
Hi,
i declared a variable in PL/1 like DCL A BIT(8).
when i coded in program in this way
A = 9;
PUT SKIP LIST(A);
A = 10;
PUT SKIP LIST(A);
output came as
'10010000'B
'00010100'B whaere as i expected in other way.
atleast for 10 it should come 1010000......
could any body explain this to me...? |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
I am not sure.
But plesae assign the values as Binary, instead of Decimal.
Awaiting others reply. |
|
Back to top |
|
|
|