求整数的位数

 UInt16 NewdataDigit = (UInt16)((Math.Log10((double)Newdata) + 1)+2);

原文地址:https://www.cnblogs.com/carl2380/p/1924601.html