The device returns the correct value 522140, but after multiplying by scaler 0.01, returned the value 5221.40000000000005.
This does not happen with all data.
Below is a screenshot showing the code of file "GXDLMSProfileGeneric" with incorrect data conversion.
Please tell me, can this be fixed?
Thanks.
Reading data:
[Hex trace removed]
Hi, This is a common problem…
Hi,
This is a common problem with floats and doubles, and there is nothing you can do about it. The reason is that floating point values use the mantissa and the exponent to store the number.
The only way to solve this is if you show data only with two digits.
BR,
Mikko