Documentation/Calc Functions/LOFT.MATEMATIK

From The Document Foundation Wiki
Jump to navigation Jump to search
This page is a translated version of the page Documentation/Calc Functions/CEILING.MATH and the translation is 10% complete.
Outdated translations are marked like this.
Other languages:
English • ‎Nederlands • ‎dansk • ‎español

Template:Documentation/Calc Functions/Func Page Links/da

Funktionsnavn:

LOFT.MATEMATIK

Kategori:

Matematisk

Resume:

Afrunder et tal til det nærmeste multiplum af en signifikant værdi.

Syntaks:

LOFT.MATEMATIK(Number [; Significance [; Mode]])

Returnerer:

Returnerer en heltalsværdi.

Argumenter:

Tal er det reelle tal, som skal afrundes, eller en reference til en celle, der indeholder tallet.

Signifikans (valgfri) er den reelle 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 den signifikante værdi er negativ. Så hvis tilstand er givet og ikke lig med nul, rundes tallene ned (væk fra nul). Hvis tilstand er lig med nul eller ikke givet, rundes negative tal op (imod nul).

  • If any argument is non-numeric, then LOFT.MATEMATIK reports a #VALUE! error.
  • If either Number or Significance is equal to 0, then LOFT.MATEMATIK returns 0.

Yderligere oplysninger:

Warning.svg

Warning:
Denne funktion eksisterer af hensyn til interoperabilitet med Microsoft Excel 2013 eller neyere.

  • With Significance set to -1 or +1, or defaulted to 1, and Mode set or defaulted to 0 or FALSK, LOFT.MATEMATIK provides functionality that implements the standard mathematical definition of a ceiling value.
  • LOFT.MATEMATIK is similar to the AFRUND.LOFT function, the difference between the two lying in the interpretation of the Significance argument. The AFRUND.LOFT function requires the Significance and Number arguments to have the same sign, whereas for LOFT.MATEMATIK the sign of the Significance argument is ignored.

Template:Documentation/Calc Functions/ceiling functions information/da

Eksempler:

Template:Calc-Formula/da Template:Calc-Description/da Template:Calc-Returns/da
=LOFT.MATEMATIK(11,5) Significance defaults to 1 and Mode defaults to 0. The function rounds up 11.5 to the nearest integer multiple of 1. 12
=LOFT.MATEMATIK(-11,5) Significance defaults to 1 and Mode defaults to 0. The function rounds up -11.5 to the nearest integer multiple of 1. -11
=LOFT.MATEMATIK(7; 2,3) Mode defaults to 0. The function rounds up 7 to the nearest integer multiple of 2.3. 9,2
=LOFT.MATEMATIK(-7; -2,3) Mode defaults to 0. The function rounds up -7 to the nearest integer multiple of 2.3 (the sign of the significance value is ignored). -6,9
=LOFT.MATEMATIK(D1; D2; D3) where cells D1, D2, and D3 contain the numbers 10, 3, and 1 respectively. The function rounds up the value 10 to the nearest integer multiple of 3. The value of Mode is not significant for a positive number. 12
=LOFT.MATEMATIK(-10; -3; 0) With Mode set to 0, the function rounds up the value -10 to the nearest integer multiple of 3 (the sign of the significance value is ignored). -9
=LOFT.MATEMATIK(-10; -3; 7,6) With Mode set to a non-zero value, the function rounds down the value of -10 to the nearest integer multiple of 3 (the sign of the significance value is ignored). -12
=LOFT.MATEMATIK(-3,6; ; SAND()) Significance defaults to 1. With Mode set to a non-zero value, the function rounds down the value of -3.6 to the nearest integer multiple of 1. -4

Beslægtede LibreOffice-funktioner:

AFRUND.LOFT

LOFT.PRECISE

LOFT.XCL

AFRUND.GULV

GULV.MAT

GULV.PRÆCIS

GULV.XCL

HELTAL

ISO.LOFT

ODF standard:

Ingen

Tilsvarende Excel-funktioner:

LOFT.MATEMATIK