Floating numbers are not correctly encoded when using IR four-byte encoding
LinZhihao-723 opened this issue · comments
Lin Zhihao commented
Bug
When using CLP IR four-byte encoding methods to encode a message that contains a floating point number, the decoded message differs from the original message:
Message before encoding (raw text): fps=60.000004
Message after decoding (from the encoded IR): fps=.0
The errors are caught with multiple different floating point numbers, while the decoded results are all being .0
.
CLP version
Environment
Ubuntu 18.04
macOS 12.5
Reproduction steps
- Encodes the following log message using CLP IR four-byte encoding method:
fps=60.000004
- Decodes the encoded message back to the raw text using CLP IR four-byte decoding methods.