LREAL_TO_STRING

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_LREALInput value
DECIMALANY_USINTNumber of decimal places\\
OutputType Description
ANY_STRINGOutput: value converted to a string\\

  • © Energocentrum Plus, s.r.o. 2017 - 2022