using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GraphicsStudy { public static class DoubleMethod { /// /// 四舍五入,保留几位小数点 /// /// /// /// public static double Round(this double d1, int i = 0) { return Math.Round(d1, i); } } }