Becoming familiar with different data types is essential for writing PLC programs. One of the data types widely used in programming is REAL. Most PLC programmers ignore that the TIA Portal software specifies and calculates the data type REAL with a precision of six decimal places, which might lead to unexpected results. This issue, alongside possible solutions, will be discussed in detail in this tutorial.
This is a companion discussion topic for the original entry at https://www.solisplc.com/tutorials/floating-point-value-calculation-real-and-lreal-in-scl