View previous topic :: View next topic
|
Author |
Message |
jcbhimani
New User
Joined: 30 Nov 2006 Posts: 12 Location: Ahmedabad
|
|
|
|
Hi Friends,
In COMP-3 The SIGN is stored separately as the rightmost half-a-byte regardless of whether S is specified in the PICTURE or not.
The hexadecimal number C or F denotes a positive sign.
My question is ::
How it is decided whether to use hexadecimal number C or F
Example ::
77 I PIC 9(3) COMP-3 VALUE IS 374
the internal representation will be ::
0011 0111 0100 1111 i.e 374F
Is it possible like this ::
0011 0111 0100 1100 i.e 374C
Hope I am clear in my QUESTION.
Regards,
JITU
|
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
77 I PIC S9(3) COMP-3 VALUE IS 374
will produce the 0011 0111 0100 1100 i.e 374C |
|
Back to top |
|
|
jcbhimani
New User
Joined: 30 Nov 2006 Posts: 12 Location: Ahmedabad
|
|
|
|
Thankx a lot William for that QUICK reply........... |
|
Back to top |
|
|
ajaygowda
New User
Joined: 14 Oct 2006 Posts: 2 Location: bangalore
|
|
|
|
the sign is always stored in the last nibble always and t sign wil be stored in hex format. |
|
Back to top |
|
|
|