📅  最后修改于: 2022-03-11 14:56:07.745000             🧑  作者: Mango
double fgcd(double a, double b)
{
if (b > a)
{
return fgcd(b, a);
}
if (fabs(b) < 0.001)
{
return a;
}
else
{
return (fgcd(b, a - floor(a / b) * b));
}
}