Template:Math-sign

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Usage: {{Math-sign|x}} returns:

  • -1 if x is negative
  • 0 if x is zero
  • 1 if x is positive