LREAL_TO_STRING
PROGRAM LREAL_TO_STRING_DEMO VAR STRING1: STRING; LREAL1: LREAL; USINT1: USINT; END_VAR STRING1:=LREAL_TO_STRING(VALUE:=LREAL1,DECIMAL:=USINT1); END_PROGRAM
Function converts the input value on value to a string. The decimal value specifies how many decimal places shall the string contain.
Input | Type | Description |
VALUE | ANY_LREAL | Input value |
DECIMAL | ANY_USINT | Number of decimal places |
Output | Type | Description |
⇒ | ANY_STRING | Output: value converted to a string |