This function is there to round values. Same as Modelica.Blocks.Nonlinear.VariableLimiter but it's a function.
The precision should not be set higher than 3 or 4 digits, otherwise simulation time will increase significantly.
Rounding real input signals to the given number of digits after the decimal point. The output is a real. This function may be used in conjunction with lookup tables that must not be interpolatated. The table data must then be provied with the set precision.
function round input Real u; input Integer digits; output Real y; end round;