# Math::Ceil
Rounds the input value up to the nearest integer
Math::Ceil
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)
}
