Absolute Value

The absolute value function (abs) removes the negative sign from an input value, if present.

With a vec2 input, this applies separately to the X and Y components. For the overall length of a vec2, see the "Magnitude" node instead.

Interface

Inputs

ParameterDetailsPossible Types
Value

The number to be made positive.

Primary Input

Vec2[]
Vec2
f32[]
f32
f64[]
f64
i32[]
i32
i64[]
i64

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

f64
f64[]
f32
f32[]
i32
i32[]
i64
i64[]
Vec2
Vec2[]