Example:
round(1.6)
returns 2 as an Integer
.
function round extends Modelica.Icons.Function; input Real u "<html><code>Real</code> variable</html>" annotation( Dialog(__Dymola_label = "<html><i>u</i></html>")); output Integer y "Nearest integer" annotation( Dialog(__Dymola_label = "<html><i>y</i></html>")); end round;