View previous topic :: View next topic
|
Author |
Message |
rainye
New User
Joined: 11 Jul 2006 Posts: 8
|
|
|
|
I am required to convert a PLI program to a cobol program. As I am new to PLI, I don't know what the data structure of the fixed decimal is in PLI.
For example, a "dec fixed (7,0) " data occupys 4 digits, if the value is "123456.0", what's the hex value for this data? Is it a Hex'00123456'? Or a Hex'0123456C', the same as the comp-3 in Cobol?
Thanks! |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Hex'0123456C', the same as the comp-3 in Cobol. |
|
Back to top |
|
|
rainye
New User
Joined: 11 Jul 2006 Posts: 8
|
|
|
|
Thanks very much. And someone just told me that I should never forget the sign. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
C for positive number, D for negative ( also E ). F for unsigned. |
|
Back to top |
|
|
rainye
New User
Joined: 11 Jul 2006 Posts: 8
|
|
|
|
: ) Thanks very much ! |
|
Back to top |
|
|
|