Java Utililty Methods Char Array to Long

List of utility methods to do Char Array to Long

Description

The list of methods to do Char Array to Long are organized into topic(s).

Method

longcharArrayToLong(char[] bi)
char Array To Long
long len = bi.length;
long sum = 0;
long tmp, max = len - 1;
for (int i = 0; i < len; ++i) {
    tmp = bi[i] - '0';
    sum += tmp * Math.pow(2, max--);
return sum;
...