I have an array like [ 1, 0, 0, 0 ] that i would like to convert to a number using bin2dec, is there a way to do it like with dec2bin, where you just use -'0' or would I have to go trough string operations?
I have an array like [ 1, 0, 0, 0 ] that i would like to convert to a number using bin2dec, is there a way to do it like with dec2bin, where you just use -'0' or would I have to go trough string operations?