Returns 1, 0 or -1 for positive, zero and negative respectively.
Function
result = sign(input)
Arguments
Argument | Data Type |
input | numeric |
---|---|
result | decimal |
Examples
result = sign(-16) /* result = -1 */
result = sign(5) /* result = 1 */
Returns 1, 0 or -1 for positive, zero and negative respectively.
result = sign(input)
Argument | Data Type |
input | numeric |
---|---|
result | decimal |
result = sign(-16) /* result = -1 */
result = sign(5) /* result = 1 */