Documentation/Calc Functions/ULIGE

    From The Document Foundation Wiki
    This page is a translated version of the page Documentation/Calc Functions/ODD and the translation is 7% complete.
    Outdated translations are marked like this.


    Funktionsnavn:

    ULIGE

    Kategori:

    Matematisk

    Resume:

    Runder et positivt tal op til nærmeste ulige heltal og et negativt tal ned til nærmeste ulige heltal.

    Syntaks:

    ULIGE(Number)

    Returnerer:

    Returnerer tallet afrundet til nærmeste lige heltal opad, væk fra nul.

    Argumenter:

    Tallet er et reelt tal eller en reference til en celle, der indeholder det tal, hvis afrundede ulige værdi opad/nedad skal beregnes.

    • If Number is non-numeric, then ULIGE reports a #VÆRDI! error.

    Yderligere oplysninger:

    • Ingen
    • If Number is equal to 0, then ULIGE returns 0.

    Eksempler:

    Formula Description Returns
    =ULIGE(3,3) Rounds up 3.3 to the next odd integer. 5
    =ULIGE(D1) where D1 contains the number 1.9. Rounds up 1.9 to the next odd integer. 3
    =ULIGE(0) Returns 1. 1
    =ULIGE(−0,5) Rounds down -0.5 to the next odd integer. −1
    =ULIGE(−3,1) Rounds down -5 to the next odd integer. −5

    Beslægtede LibreOffice-funktioner:

    LIGE

    ODF standard:

    Tilsvarende Excel-funktioner:

    ODD