Table of Contents

TO_LREAL

Function name

TO_LREAL

ST call

PROGRAM TO_LREAL_DEMO
   VAR
           LI1: LINT; 
     LR1: LREAL;
   END_VAR
    LR1:=TO_LREAL(LI1);
END_PROGRAM

Description

The function brings the input value to the output as a real number.

Inputs

InputType Description
IN ANY_ELEMENTARYInput value

Outputs

OutputType Description
LREALOutput value

Application example