Sign - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Notation

Description

Returns the sign of the number. sign(-4) returns -1, sign(0) returns 0.

Parameters

  • x: is a numeric argument whose sign (negative, positive, or 0) you are interested in obtaining.

Return Values

Returns the sign of x, one of -1 (for negative), 0, or 1 (for positive).

Example Call

// demonstrates

NOTOC

Category:Function:Real