decimal numberString=0.266254M;
NumberFormatInfo nfi = new CultureInfo( "en-US", false ).NumberFormat; nfi.NumberDecimalDigits=6; Console.WriteLine( numberString.ToString( "F", nfi ) ); // 123
decimal 格式化后输出到JSON 会自动略掉后面的0.需转string 处理