The system function MathLib.stringAsFloat accepts a character value (like "98.6") and returns the equivalent value of type FLOAT. If the input is nonnumeric, the function returns a NULL.
MathLib.stringAsFloat(numberAsText STRING in) returns (result FLOAT nullable)
For details on the implications of assigning numeric values to fields of different types, see Assignments.
myField = "-5.243"; // result = -5.243 result = MathLib.stringAsFloat(myField);
Related concepts
Syntax diagram for EGL functions
Related reference
Assignments
EGL library MathLib