Math
Trunc
Drops the fractional part of a float, rounding toward zero.
In
Trunc
Out
Node image coming soon
Usage
Differs from Floor on negatives: Trunc of −2.7 is −2, Floor of −2.7 is −3. The result is still a float.
Inputs
| Type | Name | Description |
|---|---|---|
| float | In | The value. |
Outputs
| Type | Name | Description |
|---|---|---|
| float | Out | Truncated, still a float. |