decimal.ToString()问题

     decimal dt = 1.00M;
            decimal dt1 = 1M;
            
            bool d = dt == dt1;
            bool d2 = dt.ToString() == dt1.ToString();

这儿的d2是false的因为dt.ToString()是1.00,而dt1是1

原文地址:https://www.cnblogs.com/liningit/p/5546265.html