Hi,
Is there a simple why for me to set the number of digits when writing to a file?
I have something like:
using DelimitedFiles
writedlm ("$filename.xyz",[x y z]," ")
or
write(io, "xyz");print(io,"\r\n");
print(io,sprint(show,[x,y,z]));print(io," ");
In c++ you just set:
std::cout.setf( std::ios::fixed, std:: ios::floatfield ); // floatfield set to fixed
std::cout.precision(13);
std::cout << m << std::endl;
(setprecision - C++ Reference)
I am sure the answer is simple as always, I just cant spot it in the help.
Cheers,
Tim