tech on the net
Home About Us Feedback Site Map


Access Excel Word


SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker


C Language


ASCII Table Linux UNIX Java Clipart Joke of the Moment
Share this page:

Oracle/PLSQL: SIGN Function

Learn 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 Oracle/PLSQL SIGN function is:

SIGN( number )

Parameters or Arguments

number is the number to test for its sign.


If number < 0, then sign returns -1.

If number = 0, then sign returns 0.

If number > 0, then sign returns 1.

Applies To

The SIGN function can be used in the following versions of Oracle/PLSQL:

  • Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i


Let's look at some Oracle SIGN function examples and explore how to use the SIGN function in Oracle/PLSQL.

For example:

SIGN(-23) would return -1
SIGN(-0.001) would return -1
SIGN(0) would return 0
SIGN(0.001) would return 1
SIGN(23) would return 1
SIGN(23.601) would return 1