Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
using System.IO;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var x = new double[] { 1, 2, 3, 1e11 };
|
||||
var y = new double[] { 1, 1.4142135623730951, 1.7320508075688772, 316227.76601683791 };
|
||||
|
||||
int xprecision = 3;
|
||||
int yprecision = 5;
|
||||
|
||||
string formatString = "{0:G" + xprecision + "}\t{1:G" + yprecision + "}";
|
||||
|
||||
using (var outf = new StreamWriter("FloatArrayColumns.txt"))
|
||||
for (int i = 0; i < x.Length; i++)
|
||||
outf.WriteLine(formatString, x[i], y[i]);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue