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...
