摘要:
floor() Returns a number rounded down to the next integer ceiling() Returns a number rounded up to the next integer round() Returns a number rounded to the nearest integer 阅读全文
摘要:
1.String Format (1).小数保留2位小数 decimal.Parse(weight).ToString("F2") (2).String.Format string.Format("{0:000.000}", 12.2) 012.200 string.Format("{0:D3}", 2) 002 字符 说明 示例 输出 C 货币 string.Fo... 阅读全文