Jump to content

Documentation/Calc Functions/FORTEGN

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


Funktionsnavn:

FORTEGN

Kategori:

Matematisk

Resume:

Returnerer et tals fortegn.

Syntaks:

FORTEGN(Number)

Returnerer:

Returnerer 1, hvis tallet er positivt, -1, hvis det er negativt og 0, hvis det er nul.

Argumenter:

Tallet er et reelt tal eller en reference til cellen, der indeholder det tal, hvis fortegn skal bestemmes.

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

Yderligere oplysninger:

GIFen herunder illustrerer funktionen FORTEGN.

Funktionen Fortegn

Eksempler:

Formel Beskrivelse Returnerer
=FORTEGN(3,4) Here the function returns 1 to indicate that the specified number is positive. 1
=FORTEGN(D1) where cell D1 contains the number -4.5. Here the function returns -1 to indicate that the specified number is negative. −1
=FORTEGN(0) Here the function returns 0, to indicate that the specified number is equal to zero. 0

Beslægtede LibreOffice-funktioner:

ABS

ODF standard:

Section 6.16.54, part 2

Relaterede (eller lignende) Excel-funktioner:

SIGN