📅  最后修改于: 2022-03-11 14:49:04.181000             🧑  作者: Mango
double IP_address_to_double(string ip)
{
int i =3;
double sum=0;
foreach(string octette in ip.Split("."))
{
sum += Math.Pow(256, i) * Convert.ToDouble(octette);
i--;
}
return sum;
}