# Math::Floor
Rounds the input value down to the nearest integer
Math::Floor
I
O
# Inputs
| ID | Abbrev | Name | Type | Default | Description |
|---|---|---|---|---|---|
input | I | Input | NUMBER | 0 | Input |
# Outputs
| ID | Abbrev | Name | Type | Default | Description |
|---|---|---|---|---|---|
output | O | Output | NUMBER | 0 | Output |
# 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)
}
