Search notes:

Oracle: BIN_TO_NUM

bin_to_num interprets a «bit vector» as a number.
select
   bin_to_num(     1, 0, 0, 1) nine,
   bin_to_Num(  1, 0, 1, 0, 1) twenty_one
from
   dual;

Index