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.
Examples¶
1 2 |
|
[info] [sample-wire] @f3(-0 4 7)