Skip to content

roundIfVeryClose

roundIfVeryClose rounds a float to the nearest integer when its difference from that integer is below a configurable threshold, making it useful for cleaning up numbers shown in displays. Its optional argument x sets the threshold to 10^(-x), with a default of 3; larger arguments require the input to be closer to an integer.


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 easyflow and install it. Then create an object with declare -lib easyflow -path easyflow. Finally, use roundIfVeryClose or any other object from easyflow.


Similar


    Comments

    Contributors