Subj : MPL function returns - Re
To : G00R00
From : GRYPHON
Date : Thu Jan 31 2019 07:20 pm
James,
I've been playing with MPL function that return the datatype of REAL, and they
don't seem to be working. If I have a function return a REAL, it is always an
integer. I have a global variable (Var TextReal : Real) and I assign it a
real number inside a function, but when when I assign value to the REAL
function, it always comes back as integer.
Var TestREAL : Real
Function Str2Real(S:String):Real
Var Ret : Real
Begin
TestREAL:=5.6
Ret:=TestREAL
Str2Real:=Ret
End