using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MatrixCalculator { static class MyDouble { public static string String(double n) { if (MatrixCalculator.Properties.Settings.Default.DoublePrecision == -1) return n.ToString(); else return Math.Round(n, MatrixCalculator.Properties.Settings.Default.DoublePrecision).ToString(); } } }