Documentation/Calc Functions/RUND.OP
TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Donate
RUND.OP
Kategori:
Matematisk
Resume:
Afrunder et tal opad, fjernende sig fra nul eller til en vis nøjagtighed.
Syntaks:
RUND.OP(Number[; Count])
Returnerer:
Returnerer tallet oprundet (fjernende sig fra 0) til antal decimalpladser.
Argumenter:
Tallet er et reelt tal eller en reference til cellen, der indeholder det tal, som skal rundes op til et bestemt antal decimalpladser.
Antal er et heltal eller en reference til cellen, der indeholder det heltal, som er antallet af decimalpladser, som tallet skal rundes op til.
Hvis antallet er udeladt eller 0, runder funktionen op til et heltal. Hvis antallet er negativt, runder funktionen op til nærmeste 10, 100, 1000 osv.
The following conditions (including errors) may be encountered:
- If either Number or Count is non-numeric, then RUND.OP reports a #VÆRDI! error.
- If Count is a non-integer value, then it is rounded to the next integer in the direction of 0.
Yderligere oplysninger:
Denne funktion afrunder væk fra nul, se RUND.NED og AFRUND som alternativer.
Eksempler:
Formula | Description | Returns |
---|---|---|
=RUND.OP(2,348; 2) | Here the function rounds 2.348 away from 0, to 2 decimal places. | 2,35 |
=RUND.OP(D1; D2) where cells D1 and D2 contain the numbers -32.4834 and 3.2 respectively. | The value of the Count argument is truncated to 3. Here the function rounds -32.4834 away from 0, to 3 decimal places. | −32,484 |
=RUND.OP(2,648; 0) | Here the function rounds 2.648 away from 0, to the next integer. The alternative formula =RUND.OP(2.648) returns the same value. |
3 |
=RUND.OP(−45,67) | Here the function rounds -45.67 away from 0, to the next integer. | −46 |
=RUND.OP(887,65; −2) | Here the function rounds 887.65 away from 0, to the next hundred. | 900 |
Beslægtede LibreOffice-funktioner:
ODF standard:
Tilsvarende Excel-funktioner:
RUND.OP