View previous topic :: View next topic
|
Author |
Message |
ashimer
Active Member
Joined: 13 Feb 2004 Posts: 551 Location: Bangalore
|
|
|
|
hi i
have a field declared as s9(4) comp which contains 32768 ..now i move this to 9(4) ..wht will the new field contain and y ??????
regards |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi
First have a look at declarations. Comp is the same as binary. So S9(4) comp themes to be two bytes binary. Comp-3 is the same as packed decimal. And Pic S9(4) is a four byte numeric field.
I think, now it's clear !
Remarks:
Using binary fields within arithmetic intruktions are more effective as packed decimal, even if the numeric digits are not more than
9 digits.
Conversations between packed decimal and display have a bigger performance than between binary and display.
Regards, UmeySan |
|
Back to top |
|
|
|