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