Round ( x , n )
| Argument | Beschrijving |
|---|---|
| x | Het getal dat u wilt afronden. |
| n | Het aantal decimalen waarop u x wilt afronden. Geldige waarden zijn 0 tot en met 28. |
Gegevenstype: Decimal Als n positief is, retourneert Round x afgerond op het opgegeven aantal decimalen. Als n negatief is, retourneert de functie x afgerond op (- n +1) posities vóór de decimale komma.
Voorbeeld 1
Section titled “Voorbeeld 1”Round(9.624, 2)
Deze expressie retourneert 9.62
Voorbeeld 2
Section titled “Voorbeeld 2”Round(9.625, 2)
Deze expressie retourneert 9.63
Voorbeeld 3
Section titled “Voorbeeld 3”Round(9.6, 3)
Deze expressie retourneert 9.600
Voorbeeld 4
Section titled “Voorbeeld 4”Round(-9.625, 2)
Deze expressie retourneert -9.63
Voorbeeld 5
Section titled “Voorbeeld 5”Deze expressie retourneert -10:
Round(-9.625, -1)