Documentation/Calc Functions/GULV.MAT

    From The Document Foundation Wiki
    This page is a translated version of the page Documentation/Calc Functions/FLOOR.MATH and the translation is 9% complete.
    Outdated translations are marked like this.
    Other languages:


    Funktionsnavn:

    GULV.MAT

    Kategori:

    Matematisk

    Resume:

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

    Syntaks:

    GULV.MAT(Number [; Significance [; Mode]])

    Returnerer:

    Returnerer en heltalsværdi.

    Argumenter:

    Tallet er værdien, eller en reference til en celle, der indeholder den værdi, der skal afrundes. Hvis tallet sættes til 0, returnerer GULV.MAT 0 uanset signifikans-værdien.

    Signifikans (valgfri) er værdien eller en reference til en celle, der indeholder værdien, som tallet skal afrundes til et multiplum af. Hvis udeladt, er standarden 1. Hvis Signifikans er sat til 0, returnerer GULV.MAT 0, uanset værdien af tallet. Signifikansens fortegn ignoreres af denne funktion.

    Tilstand (valgfri) er et tal eller en reference til en celle, der indeholder et tal. Hvis tilstand er givet og ikke er lig med nul, rundes et negativt tal op (nærmer sig nul). Hvis tilstand er lig med nul eller ikke er givet, rundes et negativt tal ned (fjerner sig fra nul).

    • Hvis det andet (signifikans) og tredje (tilstand) argument udelades, implementerer funktionen en standard matematisk gulv-funktion. Det vil side, at med et reelt tal x, er dets gulv det største heltal, der er mindre end eller lig med x.
    • If either Number or Significance is equal to 0, then GULV.MAT returns 0.

    Yderligere oplysninger:

    Warning.svg

    Advarsel:
    Denne funktion forøger interoperabilitet med Microsoft Excel, som har haft en tilsvarende GULV.MAT-funktion siden Excel 2013. Når Calc åbner en Excelfil eller gemmer et regneark i Excelformat, behøver det ikke at konvertere referencer til GULV.MAT til nogen anden funktion.

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


    General information about Calc's floor functions

    Note pin.svg

    Bemærk:
    For convenience, the information in this subsection is repeated on all pages describing Calc’s floor functions.

    General introductory information about floor functions can be found at Wikipedia's Floor and ceiling functions page.

    Calc provides four functions that can be used to calculate the floor value of a number, and these are:

    The most important of these for many users will be the AFRUND.GULV function, which implements the requirements laid out in Section 6.17.3 of ODF 1.2, Part 2.

    Calc provides the GULV.MAT, and GULV.PRÆCIS functions to increase interoperability with Microsoft Excel, which provides two similar functions with the same names.

    Microsoft Excel's AFRUND.GULV function accepts two arguments and so is not compliant with ODF 1.2. This difference in behaviour could lead to interoperability problems but these are avoided through the provision of the GULV.XCL function, as follows:

    • When Calc saves a spreadsheet to Excel 2007-365 (*.xlsx) format, any call to Calc's AFRUND.GULV function is converted to a call to Excel's GULV.MAT function, and any call to Calc's GULV.XCL function is converted to a call to Excel's AFRUND.GULV function.
    • When Calc opens a spreadsheet in Excel 2007-365 (*.xlsx) format, any call to Excel's AFRUND.GULV function is converted to a call to Calc's GULV.XCL function.

    Eksempler:

    Formel Beskrivelse Returnerer
    =GULV.MAT(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
    =GULV.MAT(−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
    =GULV.MAT(7; 2,3) Mode defaults to 0. The function rounds down 7 to the nearest integer multiple of 2.3. 6,9
    =GULV.MAT(−7; −2,3) Mode defaults to 0. The function rounds down -7 to the nearest integer multiple of 2.3 (the sign of the significance value is ignored). −9,2
    =GULV.MAT(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
    =GULV.MAT(−10; −3; 0) With Mode set to 0, the function rounds down the value -10 to the nearest integer multiple of 3 (the sign of the significance value is ignored). −12
    =GULV.MAT(−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 (the sign of the significance value is ignored). −9
    =GULV.MAT(−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:

    AFRUND.LOFT

    LOFT.MATEMATIK

    LOFT.PRECISE

    LOFT.XCL

    AFRUND.GULV

    GULV.PRÆCIS

    GULV.XCL

    HELTAL

    ISO.LOFT

    ODF standard:

    Ingen

    Relaterede (eller lignende) Excel-funktioner:

    FLOOR.MATH since v.2013.