public static PhpNumber bindec(string str) { if (str == null) return PhpNumber.Default; return ConvertToLong(BaseToDouble(str, 2)); }