Page logoMath sketchbook

Documentation for sign

Signature

sign(x)

Description

The sign() function returns either a positive or negative ±1 or 0, indicating the sign of a number passed as an argument.

Variants

  • sign(scalar) -> scalar

Examples

See also