Availability:Arithmetic function (see is/2)
[ISO]sign(+Expr)Evaluate to -1 if Expr < 0, 1 if Expr
> 0 and 0 if
Expr = 0. If Expr evaluates to a float,
the return value is a float (e.g., -1.0, 0.0 or 1.0). In particular,
note that sign(-0.0) evaluates to 0.0. See also copysign/2.