Encode/decode floating-point number in TLV-VALUE
Define a convention of serializing floating-point number in TLV-VALUE.
Implement encoding and decoding functions in
One use case is serializing a set of hyperbolic coordinates that contains floating-point numbers.
Updated by Ashlesh Gawande over 2 years ago
Davide Pesavento wrote:
You're missing my point. I didn't say it's wrong, I said it's not intuitive because "float" is also a floating-point type in C/C++, and the fact that e.g.
doubleinstead of a
floatis probably surprising/confusing to most readers.
Yes, I think readDouble is more accurate here.
Updated by Davide Pesavento over 2 years ago
- Subject changed from Represent floating-point number as TLV-VALUE to Encode/decode floating-point number in TLV-VALUE
- Status changed from Code review to Feedback
- % Done changed from 0 to 100
Code has been merged. Do we need to document the encoding format somewhere?