.sign

Information

See sign()

Interface

function sign
  input Real v;
  output Integer _sign;
  /* We do this with external "builtin" for now. But maybe we should inline it instead...
    annotation(__OpenModelica_EarlyInline = true);
  algorithm
    _sign := noEvent(if v > 0 then 1 else if v < 0 then -1 else 0);
   */
end sign;

Generated at 2023-09-30T00:33:35Z by OpenModelicaOpenModelica 1.22.0~dev.02-2-ge84afdd using GenerateDoc.mos