# Math::Abs

Process

Returns the absolute value of the input

Math::Abs
I
O

# Inputs

IDAbbrevNameTypeDefaultDescription
inputIInputNUMBER0Input

# Outputs

IDAbbrevNameTypeDefaultDescription
outputOOutputNUMBER0Output

# Source Code

View Volang source
value = input::get("input")
if (value < 0) {
    output::set("output", -value)
} else {
    output::set("output", value)
}
Returns the absolute value of the input