.ModelicaReference.Operators.'abs()'

Information

Absolute value of Real or Integer variable.

Syntax

abs(v)

Description

Is expanded into "noEvent(if v ≥ 0 then v else -v)". Argument v needs to be an Integer or Real expression.

Examples

  abs({-3, 0, 3})
 = {3, 0, 3}

Generated at 2019-07-16T01:39:24Z by OpenModelicaOpenModelica 1.14.0~dev-26600-g7be26d6 using GenerateDoc.mos