12.21
Converting INT to LREAL
INT_TO_LREAL
This function converts a value from INT data type to LREAL data type.
Structured text
d:=INT_TO_LREAL(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• This function converts the value input to (s) from INT data type to LREAL data type, and output the converted value from
(d).
(s)
1234
INT
• Input an INT data type value to (s).
■Operation result
The operation processing is performed. The operation result is output from (d).
Operation error
There is no operation error.
12 TYPE CONVERSION FUNCTIONS
146
12.21 Converting INT to LREAL
Description
Input
Output
1234.0
LREAL
(d)
Type
Data type
Input variable
INT
Output variable
LREAL