Math

Trunc

Operators

Returns the integer part of a number by removing any fractional digits

Docs for v2.1.16, the latest version.

ID

math-operators-trunc

Group

Operators

Plugin

Math

Keywords

trunc

Trunc

Operators

1 input, 1 output

Ports

Inputs

1

What the node takes in, from wires or typed values.

Number

Number

Input value

Outputs

1

What the node gives out, to wire into other nodes.

Number

Number

The integer part of the given number

Creation method#

There are two options for creating a Trunc node.#

  • The first way to create a Trunc node using the search list, which is opened by double left-clicking in the workspace. You can write the name of the node you need, or words associated with this node.
    • trunc
  • The second way is to select a Trunc node from the menu that opens from the top left.
    • Menu > Math > Operators > Trunc

Steps#

  • Create a Trunc node.
  • Connect the number whose integer part you want to find to the port.

See also#

Imul2
Hypot2

History

First documented in v2.1.16

Oct 20, 2026

Versions before it were published before changes were recorded.