sign

Core Math

Sign function: returns -1, 0, or 1.

Syntax

sign(x)

Examples

sign(-5)
▶ Run
sign(0)
▶ Run
sign(3)
▶ Run

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.