Number theory for INT32, REAL32

Some devices offer the possibility to transmit the data value as floating-point number ("Float"/ REAL).

Advantages:

Disadvantages:

On the subject of “representation errors”, a few remarks:

Number theory for INT32, REAL32 6:

Implications when using floating-point arithmetic in the PLC

The inevitable phenomena of rounding and representation errors described above can have significant and surprising result-warping effects in comprehensive floating-point calculations in control, especially when very large (e.g., > 106) and very small numbers (e.g., < 10-6) coincide. To minimize (but not eliminate!) these, LREAL calculations should preferably be performed on the control side.
Keywords for further research: Unit in the last place (ULP), floating-point algorithms, floating-point exceptions, floating-point representation.