> I have the following query regarding the per encoding as a 2's > complement-binary-integer. In section 10.4.6 of X.691its is mentioned > that - "A minimum octet 2's-complement-binary-integer encoding of the > whole number has a field-width that is a multiple of eight bits and also > satisfies the condition that the leading nine bits of the field shall > not all be zero and shall not all be ones.". What I do not understand is > as to what is the basis of the minimum octet, since the 2's complement > of a negative number will have leading ones only based on the data type. > What I mean is -12 is F4 when 1 byte FFF4 when 2 bytes FFFFFFF4 when 4 > bytes etc. With such no's what is the criteria for determining the > minimim number of octet's. Thanking you.
Dear Mr. Ramaswamy: The minimum number of octets is the minimum number whereby the value retains its intended value, so since FFF4 and F4 both have the same value, the minimum number of octets is 1. Likewise, FFF444 needs a minimum of 2 octets. On the other hand, 008000 cannot be shortened to 8000 without changing its value, so it needs a minimum of 3 octets. Of course, the standard tried to describe it in unambiguous terms, hence the "leading nine bits" thing. If I didn't quite answer your question, please ask again. ===================================================================== Conrad Sigona Voice Mail : 1-732-302-9669 x400 OSS Nokalva Fax : 1-419-831-5035 [EMAIL PROTECTED] My direct line : 1-315-845-1773
