View previous topic :: View next topic
|
Author |
Message |
alok_r_ray
New User
Joined: 30 Mar 2005 Posts: 4 Location: Kolkata
|
|
|
|
How many bites will S9(7)V99 COMP3 field occupy and why? |
|
Back to top |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
Hi ,
Quote: |
How many bites will S9(7)V99 COMP3 field occupy and why? |
It occupies 5 bytes.
Byte size=(7+2+1)/2 = 10/2 =5 bytes.
To calculate the number of bytes from the PIC, add 1 (for the sign) to the total number of digits, divide by 2, and round up if necessary.
Hope this helps. |
|
Back to top |
|
|
hncs
New User
Joined: 01 Mar 2006 Posts: 11
|
|
|
|
THE SIZE OF S9(7)V9(2)
COUNT TOTAL BYTES : 1+7+2 = 10
IF IT IS EVEN THEN N/2 OTHERWISE N+1/2.
HERE, IT WILL TAKE 5 BYTES. |
|
Back to top |
|
|
|