bin_to_num
select bin_to_num( 1, 0, 0, 1) nine, bin_to_Num( 1, 0, 1, 0, 1) twenty_one from dual;
Index