Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 The Oracle BIN_TO_NUM Function      [Return To Index] Jump to:  
  Looking for the original pages? (formerly called "Morgan's Library") You can find them here.

Term: BIN_TO_NUM

Definition:
The BIN_TO_NUM function converts a bit vector to its equivalent number.

Example Syntax:

BIN_TO_NUM(,,....)


Example Usage:
SELECT BIN_TO_NUM(1, 0, 1, 0) FROM dual;


Each argument sent to this function represents a single bit in the bit vector. This function takes as arguments any numeric datatype (or any non-numeric datatype that can be implicitly converted to NUMBER). Each expression must evaluate to 0 or 1. The BIN_TO_NUM function returns a NUMBER datatype.

The BIN_TO_NUM function is available in Oracle 9i and above.

Related Links:

Related Code Snippets:
  • BIN_TO_NUM - BIN_TO_NUM converts a bit vector to its equivalent number. Each argument to this func...
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 68 users online    © 2009 psoug.org
PSOUG LOGIN
Username: 
Password: 
Forgot your password?