What is the need for integer, and float point files in a PLC

Explain the requirement for integer and float point file in a PLC

Floating point numbers can display fractional values. Integer only displays whole numbers.

In an actual application, an integer is not ideal for use in value displays especially if it requires high accuracy like metering systems and process readouts. You need to use a floating-point number in this application.

In scaling values, PLCs actually convert through analog scaling block, the integer data type to floating-point data type for the purpose of process readout for operators.

For counting applications, you can generally use an integer. This is the reason why counter instructions use integers. In product counting applications, you generally count a product per piece, per box, or package but not in fractions.

Float used for Analog values i.e. (0.2, 1.3,or kg/cm2, bar, temperature etc)

integer use in down countdown real value, for set point