[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Examples of ASN.1 for SMIng.txt



Juergen Schoenwaelder wrote:
> 
> >>>>> Alessandro Triglia writes:
> 
> Alessandro> The constraint in Float32 is slightly more complicated,
> Alessandro> because it involves knowledge of the encoding. However,
> Alessandro> this constraint can be expressed by constraining the range
> Alessandro> of the mantissa and the range of the exponent.
> 
> Alessandro>      Float32 ::= REAL (WITH COMPONENTS { mantissa(<some
> Alessandro> range>), base(2), exponent(<some range>) })
> 
> Alessandro> In both cases, we just chose to make the specification
> Alessandro> simpler.
> 
> I am still wondering how you express an IEEE floating point number
> together with the special values formally in ASN.1. But your answer is
> probably that using something like an IEEE floating point number is
> wrong anyway. ;-)

I'm not sure this is the point you are making but decimal real numbers 
(i.e., the dotted notation) are now allowed as ASN.1 values.
-- 
Olivier DUBUISSON
france telecom R&D
     _                 DTL/MSV - 22307 Lannion Cedex - France
    ( )           tel: +33 2 96 05 38 50 - fax: +33 2 96 05 39 45
    /.\/               --------------------------------------
    \_/\               Site ASN.1 : http://asn1.elibel.tm.fr/