Write float arrays to a text file: Difference between revisions

Content added Content deleted
(Corrected deprecated function)
Line 1,509: Line 1,509:
1e+11 3.1623e+05
1e+11 3.1623e+05
</pre>
</pre>

=={{header|SPL}}==
<lang spl>x = [1, 2, 3, 10^11]
y = [1, 1.4142135623730951, 1.7320508075688772, 316227.76601683791]
xprecision = 3
yprecision = 5
> i, 1..4
s1 = #.str(x[i],"g"+xprecision)
s2 = #.str(y[i],"g"+yprecision)
#.writeline("file.txt",s1+#.tab+s2)
<</lang>


=={{header|Standard ML}}==
=={{header|Standard ML}}==