Skip to content

Math.Floor

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

This shard rounds down the input to the nearest integer.

Details

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

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

Examples

1
2
@f3(-0.95 4.0 7.54) | Math.Floor | Log
Assert.Is(@f3(-1.0 4.0 7.0) Break: true)

[info] [sample-wire] @f3(-1 4 7)