Yeah, it’s not properly formatted in latex. The easiest way is to type the function in the calculator, copy it, and then paste it into CL. All the formatting will be done perfectly that way.
You might have more luck defining it as a function and using the evaluateAt method.
f = simpleFunction(latex string)
Val = f.evaluateAt(input value)
I’m not sure about rounding. What you are trying to do may be more easily accomplished inside a graph component. You can definitely use the round(value, places) function in the graph. You can pass inputs into the graph by sinking a number into a variable and then you can pull outputs from the graph using the variables as sources. If you don’t want the graph to be seen you can just set hidden to true in its CL.