# Math::Floor
Math::Floor
I
O
# Eingänge
| ID | Kürzel | Name | Typ | Standard | Beschreibung |
|---|---|---|---|---|---|
input | I | input | NUMBER | 0 |
# Ausgänge
| ID | Kürzel | Name | Typ | Standard | Beschreibung |
|---|---|---|---|---|---|
output | O | output | NUMBER | 0 |
# Quellcode
Volang-Quellcode anzeigen
value = input::get("input")
rounded = math::round(value)
if (value < rounded) {
output::set("output", rounded - 1.0)
} else {
output::set("output", rounded)
}
