math-suite/Source/MatrixCalculator/Helpers/MyDouble.cs

17 lines
442 B
C#
Raw Permalink Normal View History

2018-02-05 23:24:46 +00:00
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();
}
}
}