ceil
The value rounded up to a whole number.
ceil(x: Val): Expr
Import math from shaders/std and use math.ceil.
Parameters
| Name | Type | Notes |
|---|---|---|
x | Val |
Example
const rows = ceil(div(height, cell))
See also
floor— The value rounded down to a whole number.