.PlanarMechanics.Utilities.Functions.round

Information

Returns the input argument rounded to the nearest Integer. Examples:

round(2.4)  ->  2
round(2.6)  ->  3
round(-1.3) -> -1
round(-1.6) -> -2

Interface

function round
  extends Modelica.Icons.Function;
  input Real v "Real number";
  output Integer i "Real number v rounded to nearest integer";
end round;

Revisions

DLR logo Developed 2010 at the DLR Institute of System Dynamics and Control


Generated at 2024-07-26T18:16:02Z by OpenModelicaOpenModelica 1.23.1 using GenerateDoc.mos