Pchp.Library.PhpMath.bindec C# (CSharp) Метод

bindec() публичный статический Метод

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.
Результат PhpNumber
        public static PhpNumber bindec(string str)
        {
            if (str == null)
                return PhpNumber.Default;

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