Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a standard way to represent a float as an attribute in a mib ?

Float MIB standard
0
Posted

Is there a standard way to represent a float as an attribute in a mib ?

0

The problem I see with an OCTET STRING or DisplayString is that in ascii text 1.5 < 1.50 hence any comparisons may be mistaken. The only other way around it that I see is to make every float item actually 2 items as such: float_val intenger float_exp integer where 1.5 would be written as 15x10^-1 and float_val = 15 float_exp= -1 However this seems extremely combersome. There has got to be a better way. Randy Sharpe Not in the spec or in the V2/V3 spec. No way to create floats that are universally understood as floats. RFC1902 takes away the old opaque declaration that possibly could have been used. We are looking forward to Counter32, Counter64 and Integer32 to carry numbers.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.