ok I have an array with 8 characters composed of either 0s or 1s. for example i have an array that if you print all its contents, you will get 01110100. however the characters are assigned randomly, so the next time i run the program the array may contain 11010110
even though they are just characters they are supposed to represent a binary digit. how can I convert the binary representation into a decimal number?
so for example say the array contains 10000011, how can I convert that to 259?
i know how to convert it on paper by the way.