Skip to content

Math.Ceil

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to round up. FloatFloat2Float3Float4Color[Any]
Output ➡️ Outputs the input rounded up to the nearest integer (as a float). FloatFloat2Float3Float4Color[Any]

This shard rounds up the input to the nearest integer.

Details

If a sequence of floats was provided as input, the shard will round up each element in the sequence and output a sequence.

If a sequence of vectors was provided as input, the shard will round up each component in each vector in the sequence and output a sequence of vectors with each component in each vector rounded up.

Examples

1
2
@f3(-0.95 4.0 7.54) | Math.Ceil | Log
Assert.Is(@f3(0.0 4.0 8.0) Break: true)

[info] [sample-wire] @f3(-0 4 8)