# Math::Floor

Process

Rounds the input value down to the nearest integer

Math::Floor
I
O

# Inputs

IDAbbrevNameTypeDefaultDescription
inputIInputNUMBER0Input

# Outputs

IDAbbrevNameTypeDefaultDescription
outputOOutputNUMBER0Output

# Source Code

View Volang source
value = input::get("input")
rounded = math::round(value)
if (value < rounded) {
    output::set("output", rounded - 1.0)
} else {
    output::set("output", rounded)
}
Rounds the input value down to the nearest integer