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