我试着做一个简单的函数来计算数字的数量。我写了一些功能很好,但我坚持这个:
// The number I want to count the digits after the decimal
long double d=33.56;
// Going to modify d but I wan't to keep the original value
long double dTemp=d;
// v to store the part after the decimal and e the part before
long double v, e;
v=modfl(dTemp,&