I'm thinking about adding support for parsing floats from hex-numbers as well as decimal that is supported now.
The reason being precision. If one would like to specify floats precisely today it might not be possible! (See disabled unit test)
It would work as follows.
If a float is parsed from hex it will just be read as an uint, or the bits of the float.
Text would also always be unpacked as hex + comment, maybe controlled by flag?
I'm thinking about adding support for parsing floats from hex-numbers as well as decimal that is supported now.
The reason being precision. If one would like to specify floats precisely today it might not be possible! (See disabled unit test)
It would work as follows. If a float is parsed from hex it will just be read as an uint, or the bits of the float. Text would also always be unpacked as hex + comment, maybe controlled by flag?
'my_float' : 0x12345678 /0.2945/