Skip to content

Sign

The sign of x: -1, 0, or 1 for negative, zero, or positive x.

WikipediaSign functionMathWorldSignWikidataQ236813DLMFfront/introduction.common.t2.r18FungrimSignFungrim entryFindStatSt000037via PermutationWolfram LanguageSign
Sign(x)-1, 0, or 1 for negative, zero, or positive real x; for complex z.

Domain: Arithmetic

Details
  • for , , respectively.
  • For a complex number, , the unit complex number pointing toward z. See Abs.
  • Recovers the original magnitude: .
  • , but propagates as NaN rather than 0.

Examples

See also: Abs, Negate