Function sign

Returns a +/- 1, indicating the sign of a number passed into the argument.

If the number passed into sign is 0, it will return a +/- 0. Note that if the number is positive, an explicit (+) will not be returned.

  • Parameters

    • value: number

    Returns number