[EMAIL PROTECTED] wrote:
>
> Hello :-),
>
> In the book "communication between heterogeneous systems", part 20.1 "Main
> principles of PER", it's wrritten that, with aligned variant PER, it'
> possible to code : v INTEGER (123456789..123456792) ::= 123456790 with 2
> bits. How is it possible? we have to use 16 bits to code the number
> 123456789. So, how to do ?
> Regards,
>
> Patrice.
PER requires you to make the transformation: v - lowerbound, so your
"range" is actually 0..3 and you can encode 0..3 in just 2 bits.
(See X.691 (1997 E) clause 12.2.2 refering to clause 10.5)
Best regards
Egon Andersen
--
* Talura ApS * Phone: +45 43 52 50 00 *
* Baldersh�j 24 B * mailto:[EMAIL PROTECTED] *
* DK-2635 Ish�j * http://www.talura.dk *