计算一串数长度的便捷数学方法

int length(long long n)
{
    return (int)log10(n)+1;
}
原文地址:https://www.cnblogs.com/Fy1999/p/8891078.html