Math.Trunc¶
Name | Mandatory | Description | Default | Type |
---|---|---|---|---|
⬅️ Input |
The input float or sequence of floats to truncate. | Float Float2 Float3 Float4 Color [Any] |
||
Output ➡️ |
Outputs the input truncated to the nearest integer (as a float). | Float Float2 Float3 Float4 Color [Any] |
This shard truncates the input floating-point number towards zero, removing any fractional part without rounding.
Details¶
If a sequence of floats was provided as input, the shard will truncate each element in the sequence and output a sequence.
If a sequence of vectors was provided as input, the shard will truncate each component in each vector in the sequence and output a sequence of vectors with each component in each vector truncated.
Examples¶
1 2 |
|
[info] [sample-wire] @f3(-0 4 7)