latest

Operators

Trunc

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

ID

math-operators-trunc

Name

Trunc

Group

Operators

Package

Math

Keywords

trunc

Operators

Trigonometric

Tools

Constants

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

Inputs

NameTypeDescriptionDefault Value
Number
Number
Input value

Outputs

NameTypeDescription
Number
Number
The integer part of the given number