12.20
Converting INT to REAL
INT_TO_REAL
This function converts a value from INT data type to REAL data type.
Structured text
d:=INT_TO_REAL(s);
Setting data
■Description, type, data type
Argument
Description
s (IN)
Input
d
Output
Processing details
■Operation processing
• This function converts the value input to (s) from INT data type to REAL 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.
(d)
1234.0
REAL
Type
Data type
Input variable
INT
Output variable
REAL
12 TYPE CONVERSION FUNCTIONS
12.20 Converting INT to REAL
12
145