This Oracle tutorial explains how to use the Oracle/PLSQL SIGN function with syntax and examples.
The Oracle/PLSQL SIGN function returns a value indicating the sign of a number.
The syntax for the SIGN function in Oracle/PLSQL is:
The number to test for its sign.
If number < 0, then the SIGN function returns -1. If number = 0, then the SIGN function returns 0. If number > 0, then the SIGN function returns 1.
The SIGN function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle SIGN function examples and explore how to use the SIGN function in Oracle/PLSQL.
For example: