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

Floating point usage in a MIB module



MIB Doctors, do we believe that this is a proper
way to express a 32-bit floating point number?

  TeLinkBandwidth ::= TEXTUAL-CONVENTION
    DISPLAY-HINT "d"
    STATUS       current
    DESCRIPTION
       "This type is used to represent link bandwidth in bps. This
        value is represented using a 32 bit IEEE floating point
        format."
    REFERENCE
       "IEEE Standard for Binary Floating-Point Arithmetic,
        Standard 754-1985"
    SYNTAX       Unsigned32

I think that at least the DISPLAY-HINT seems weird here, no?
Now, the author may have done so because of a warning he got if there
was no display hint.

But is Unsigned32 the best way? Or would an OCTET STRING SIZE(4) be better
with a DISPLAY HINT of "1d.3d" or something like that. I don't think
we have a way to properly provide a DISPLAY-HINT for a float, do we?

Thanks,
Bert