abs()
Math / CalculationDescription
Calculates the absolute value (magnitude) of a number.
Syntax
float abs(float x)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | number to process |
Returns
floatRelated
Under the Hood
From Processing.h:
static float abs(float x) { return std::fabs(x); }