Documentation/Calc Functions/AFRUND.GULV
TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Donate
Template:Documentation/Calc Functions/Func Page Links/da
AFRUND.GULV
Kategori:
Matematisk
Resume:
Afrunder et tal til det nærmeste multiplum af en signifikant værdi.
Syntaks:
AFRUND.GULV(Number [; Significance[; Mode]])
Returnerer:
Returnerer en heltalsværdi.
Argumenter:
Tallet er det tal, som skal afrundes, eller en reference til en celle, der indeholder tallet.
Signifikans (valgfri) er den værdi, eller en reference til en celle, der indeholder den værdi, som tallet skal afrundes til et multiplum af. Standardværdien er +1 eller -1 afhængigt af tallets fortegn.
Tilstand (valgfri) er et tal, eller en reference til en celle, der indeholder et tal. Funktionen bruger kun tilstand, hvis både tallet og signifikans er negative. Så hvis tilstand er givet og ikke lig med nul, rundes tallene op (imod nul). Hvis tilstand er lig med nul eller ikke givet, rundes negative tal ned(væk fra nul).
- If any argument is non-numeric, then AFRUND.GULV reports a #VALUE! error.
- If one of Number or Significance is positive while the other is negative, then AFRUND.GULV reports an invalid argument error (Err:502).
- If either Number or Significance is equal to 0, then AFRUND.GULV returns 0.
Yderligere oplysninger:
- With Significance set or defaulted to -1 or +1 (with the same sign as Number) and Mode set or defaulted to 0 or FALSK, AFRUND.GULV provides functionality that implements the standard mathematical definition of a floor value.
- If you export a spreadsheet to Microsoft Excel, calls to the AFRUND.GULV function are converted to GULV.MAT (GULV.MAT has existed in Excel since Excel 2013). If you intend to use a spreadsheet with earlier Excel versions, use either the GULV.PRÆCIS function (that has existed in Excel since Excel 2010), or the GULV.XCL function that is converted to AFRUND.GULV on export and should be compatible with all Excel versions.
Template:Documentation/Calc Functions/floor functions information/da
Eksempler:
Template:Calc-Formula/da | Template:Calc-Description/da | Template:Calc-Returns/da |
---|---|---|
=AFRUND.GULV(11,5) | Significance defaults to +1 and Mode defaults to 0. The function rounds down 11.5 to the nearest integer multiple of +1. | 11 |
=AFRUND.GULV(-11,5) | Significance defaults to -1 and Mode defaults to 0. The function rounds down -11.5 to the nearest integer multiple of -1. | -12 |
=AFRUND.GULV(7; 2,3) | Mode defaults to 0. The function rounds down 7 to the nearest integer multiple of 2.3. | 6,9 |
=AFRUND.GULV(-7; -2,3) | Mode defaults to 0. The function rounds down -7 to the nearest integer multiple of -2.3. | -9,2 |
=AFRUND.GULV(D1; D2; D3) where cells D1, D2, and D3 contain the numbers 10, 3, and 1 respectively. | The function rounds down the value 10 to the nearest integer multiple of 3. The value of Mode is not significant for a positive number. | 9 |
=AFRUND.GULV(-10; -3; 0) | With Mode set to 0, the function rounds down the value -10 to the nearest integer multiple of -3. | -12 |
=AFRUND.GULV(-10; -3; 7,6) | With Mode set to a non-zero value, the function rounds up the value of -10 to the nearest integer multiple of -3. | -9 |
=AFRUND.GULV(-3,6; ; SAND()) | Significance defaults to -1. With Mode set to a non-zero value, the function rounds up the value of -3.6 to the nearest integer multiple of -1. | -3 |
Beslægtede LibreOffice-funktioner:
ODF standard:
Tilsvarende Excel-funktioner:
GULV.MAT