I saw here that julia has some %f
style in printing the floats.
I would like to know if this is possible to do it in setting the name of some output file. I mean that in my program I have something like:
...
for epsilon in epsilon_array
...
printfile = open("outputfile_epsilon$(epsilon).dat", "w")
...
end
...
So for instance, if I have epsilon=0.010000000
(float64), I want that the name of the outputfile is just outputfile_epsilon0.1.dat
EDIT:
For example consider the following "filling" of my the array:
epsilon_array = zeros(Float64,100)
iijj = 0.0
for ii in 1:100
epsilon_array[ii] = iijj
iijj += 0.01
end
If I take a look at some outputfile, I will have:
outputfile_epsilon0.9500000000000006.dat
So the problem is that there's a nasty number at the end of the float, that forces julia to print the whole integer.