round
numeric →
round(
digits: integer
) → numeric
Returns the value of an argument number to the specified number of fractional digits.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
digits | integer | Yes | An integer between 0 and +Infinity, indicating the number of fractional digits in the return value. |
Examples
10 | round(2) → 10
Kind: Function
Scope: numeric/rounding
Aliases: numeric-to-round