Pchp.Library.PhpMath.bindec C# (CSharp) Method

bindec() public static method

Returns the decimal equivalent of the binary number represented by the binary_string argument. bindec() converts a binary number to an integer or, if needed for size reasons, double.
public static bindec ( string str ) : PhpNumber
str string The binary string to convert.
return PhpNumber
        public static PhpNumber bindec(string str)
        {
            if (str == null)
                return PhpNumber.Default;

            return ConvertToLong(BaseToDouble(str, 2));
        }