绝对值

绝对值运算使用 | 符号,或 abs 函数

|−1|

abs (−1)

Signum x÷|x| is calculated using sgn function.

sgn (−1)