Skip to content

trunc

The trunc object truncates floating-point numbers and lists of numbers towards zero, effectively extracting only the integer part of each number. It functions similarly to Pure Data's built-in int object, providing a way to convert floats to integers by discarding the fractional component.


AI Generated

This content was generated with the assistance of AI. If you notice any errors, please report them or submit a fix using Submit. Check the prompt used here.


  • Download via Deken.

    Open Pd and go to ToolsFind Externals. Search for else and install it. Then create an object with declare -lib else -path else. Finally, use trunc or any other object from else.

  • Library developed mainly by Alexandre Torres Porres.
  • Report Bugs/Errors here!
  • Available for .

Similar


    Comments

    Contributors