Skip to main content

sign

sign (num)

The sign function returns -1 if num is negative or 1 if it is not negative.