Real value deviates, Bug?
When using a Real value I noticed that the value is other then expected. When testing with this is see the folowing:
When the value should be 0.02 PLC-NE shows 0.02 but when printed in the HMI the value is 0.019999999995529... When I use the "0.02" for calculations it also proves the value is not 0.02 but 0.0199..
Are there more people that have noticed this?
Comments
This is not a bug, it's related to the precision of 32 bit floating point numbers in IEEE 754 format.
Source: