ReferenceScript nodesMath › Number
Truncate
The whole number towards 0 (-1.5 gives -1).
ƒTruncate
A1.5Result
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Ax | number | 1.5 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | int |
In a graph
◆On Scene Start
ƒTruncate
A1.5Result
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.