c#中double类型如何保留小数点后2位。如题,比如,一个double类型的数0.301329967964275如何保留小数点后两位?麻烦知道的说下谢谢[解决办法]double d=12.2121;string str = d.ToString("F2");