HP Prime for All

English  Русский 

Syntax

SIGN(value) or SIGN(x+yi)

Description

Sign. Returns the sign of value. If positive, the result is 1; if negative, -1. If zero, the result is zero. For complex inputs returns the unit vector.

Example

SIGN (2) returns 1

SIGN — Discussion