View previous topic :: View next topic
|
Author |
Message |
pradeep
New User
Joined: 31 Jan 2004 Posts: 10 Location: Surandai,India
|
|
|
|
Please give the differences among
comp
comp-1
comp-2
syntax, usage, memory alloc
* in detail |
|
Back to top |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
Back to top |
|
|
suresh_u
New User
Joined: 31 Jan 2004 Posts: 8
|
|
|
|
Hi,
COMP can occupy from 2 bytes to 8 bytes.
For example,
S9(1-4) COMP will occupy 2 bytes.
S9(5-9) COMP will occupy 4 bytes.
S9(10-18) COMP will occupy 8 bytes.
Normally COMP is used for subscripts in tables.
COMP-1 will occupy 4 bytes - single precision
COMP-2 will occupy 8 bytes . double precision
COMP-1,COMP-2 are used in calculations with floating type variables with precision required.
Thanks
suresh |
|
Back to top |
|
|
|