.ModelicaCompliance.Util.compareReal

Information

Compares two Reals, and checks if they are close enough to be considered equal.

Interface

function compareReal
  input Real a, b;
  input Real absTol = 1e-10 "Absolute tolerance.";
  input Real relTol = 1e-5 "Relative tolerance.";
  output Boolean equal;
end compareReal;

Generated at 2024-11-20T19:25:51Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos