ceil

The value rounded up to a whole number.

ceil(x: Val): Expr

Import math from shaders/std and use math.ceil.

Parameters

NameTypeNotes
xVal

Example

const rows = ceil(div(height, cell))

See also

  • floor — The value rounded down to a whole number.