.ModelicaCompliance.Util.compareReal

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 2025-04-02T18:24:35Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos