On 2021-05-13, at 19:25, Juergen Schoenwaelder <[email protected]> wrote: > > The description of bandwidth-ieee-float32 says: > > The units are octets per second.
The quantity you are looking for is called “bit rate” (IEC 80000:13, item number 13-13). Its unit is bit/s. A single 64-bit integer should give you both the range and the precision you need for all practical applications outside millibit networks (“LPWANs”). As does an IEEE 754 binary64 float (and, probably, a binary32), which will even cover millibit networks. If you prefer software floating point, you can add an exponent. A practical base could be 1000, so an exponent of 0 is bit/s, 1 is kbit/s, 2 is Mbit/s, 3 is Gbit/s, 4 is Tbit/s, and so on. -1 and -2 would be mbit/s and µbit/s, units maybe many of you aren’t as familiar with. Grüße, Carsten _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
