View previous topic :: View next topic
|
Author |
Message |
viv Currently Banned New User
Joined: 31 Oct 2006 Posts: 4
|
|
|
|
There is a variable in the format 9(4)V9(2) which has the first byte as the SIGN. It is to be converted to the format S9(5)V(2).
WARNING: TITLE EDITED |
|
Back to top |
|
|
ramesh_m
New User
Joined: 27 Sep 2006 Posts: 10 Location: Sydney
|
|
|
|
Hi,
We can't have negative sign in the first byte of data format 9(4)V9(2).
only positive values we can store in this format. So here no point to transfer sign to other varriable |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Viv,
The best way to get an ans, is to show us how the field looks in storage. Then we may be able to advise you as to how it should be defined.
For example show us each char as 2 4-bit peices (nybbles) of each byte. +153 will appear as follows in storage (I'm not sure about the + sign value, but you get the idea):
|
|
Back to top |
|
|
|