CommandssignOn this pagesign sign (num) The sign function returns -1 if num is negative or 1 if it is not negative.