Skip to content

Math.Abs

Name - Description Default Type
<input> Any valid float(s) or a sequence of such entities supported by this operation. FloatFloat2Float3Float4Color[Any]
<output> The result of the operation, usually in the same type as the input value. FloatFloat2Float3Float4Color[Any]

Applies the unary operation on the input value and returns the result (or a sequence of results if the input and the operand are sequences).

Examples

1
2
3
4
(Const [-0.1 -0.2 0.4])
(Math.Abs) (Log)

(Assert.Is [0.1 0.2 0.4] true)
[info] [shards/Math/Abs/Abs.edn] [0.1 0.2 0.4]