Math

Operators

Trunc

  • Operators

  • Trigonometric

  • Tools

  • Constants

Trunc

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

Details

ID

math-operators-trunc

Name

Trunc

Group

Operators

Package

Math

Keywords

trunc

Input ports

NameTypeDescriptionDefault Value
Number
Number
Input value

Output ports

NameTypeDescription
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