Math.Abs¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
The numeric value or a sequence of numeric values to get the absolute value of. | Int Int2 Int3 Int4 Int8 Int16 Float Float2 Float3 Float4 Color [Any] |
||
Output ➡️ |
Outputs the absolute value of the input. | Int Int2 Int3 Int4 Int8 Int16 Float Float2 Float3 Float4 Color [Any] |
This shard outputs the absolute value of the input.
Details¶
If a sequence of integers was provided as input, the shard will calculate the absolute value for each element in the sequence and output a sequence.
If a sequence of vectors was provided as input, the shard will calculate the absolute value for each component in each vector in the sequence and output a sequence of vectors where each component in each vector is the absolute value of the corresponding component in the input sequence.
Examples¶
1 2 |
|
[info] [sample-wire] [0.1 0.2 0.4]