PLC

REAL / LREAL

The data types REAL and LREAL are floating-point types. They are necessary when using floating-point numbers.

Data type
Lower bound
Upper bound
Memory space
REAL
-3.402823e+38
3.402823e+38
32 bit
LREAL
-1.7976931348623158e+308
1.7976931348623158e+308
64 bit
 
Note
If the value of the REAL/LREAL number is outside the range of the integer, conversion of the data types from REAL or LREAL to SINT, USINT, INT, UINT, DINT, UDINT, LINT or ULINT returns an undefined result.

See also:

REAL/LREAL constants