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

TypeNameDescription
floatIn The value.

Outputs

TypeNameDescription
floatOut Truncated, still a float.