FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
03-22-2024 11:41 AM - edited 03-22-2024 11:42 AM
Hello,
when I try to show a 32bit floating-point value (which correlates "REAL" inside the PLC and "Float" for OPC UA), the value is not shown correctly.
When I enter the value "0.12" into the input field, the correct value "0.12" is written into the PLC, but the HMI shows "0.11999999731779099".
When I use a 64bit floating-point value (which correlates "LREAL" inside the PLC and "Double" for OPC UA), everything works fine.
Solved! Go to Solution.
03-22-2024 03:17 PM
This is normal behavior when using FLOAT/REAL types in general in programming languages: