round
Round to the nearest integer or to N decimals
round(
n,
[decimals=0]
) -> FLOAT
Round to the nearest integer or to N decimals
Syntaxe
round(PI) round(PI,2)
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
n | yes | - | Number | |
decimals | - | 0 | Number of decimals |