Skip to content

math.sign

math.sign computes the sign of an input number, returning -1 for negative values, 0 for zero, and 1 for positive values. It accepts either a float or a list of numbers and outputs the resulting sign value or values.


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

  • Available for .

Similar


    Comments

    Contributors