round()
Math / CalculationDescription
Calculates the integer closest to the parameter.
Syntax
float round(float x)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | number to round |
Returns
floatRelated
Under the Hood
From Processing.h:
static float round(float x) { return std::round(x); }
static float round(float x) { return std::round(x);