str::precision
precision(number: Float, precision: Integer)
| Parameter | Type | Description |
|---|---|---|
| number | Float | The floating point number to round. |
| precision | Integer | How many decimal places the string representation should show. |
Returns
(String) A string representation of the given number rounded by the given precision.