😎 Solution from: Randy (Udemy Student)
In order to display the correct percentage and cm value to the Factory IO digital display.
1. Configure display in Factory IO to Integer
2. Leave all output variables in Scaling function as "Real"
3. However, you need to go to PLC tags, change QD38, QD42 (these are the addresses I use in my case) data type to DINT (or UDInt also works).