I'm using Bitconverter to convert from a float to a Byte array.
byte[] ValueByteArray = BitConverter.GetBytes(Value);
Now I'm evaluating my application with another application, and the goal is of course that my output is exactly the same. Problem is, it isn't.
I'm 100% sure the test output is correct, and my value is 'wrong' or in another format. Because in a client, connected to the reference application, the value is 5.5 and mine is 6.09414613e-039
My application:
- Test value: 5,5
- Byte array value: 0.0.5C.42
- Value in client application: 6.09414613e-039
Reference application:
- Test value: 5,5
- Byte array value: 0.0.B0.40
- Value in client application: 5,5