Are you writing the output to a file, in a data table format, or is it staying in the notebook?
When outputting to a text file where I want a particular format (so that my fortran or python function can import it), there are various tricks to use (NumberForm, ToString, FortranForm, etc). The exact method depends on how you want the output formatted.
Thank you for you reply
I am exporting the data as .csv , I found that is the best way of keeping all the digits. FortranForm does what I need but with one problem.
Here is an example what I am doing.
A = {1.000000000000000000, 2.000000000000000000}; (*this is the position*)
B = {1.456783454656574576, 4.546562323253456534}; (*value at that position*)
C=Transpose[{A, B}] (*and I write C to .csv file*)
And when I use FortranForm on A it is not anymore a list therefore I can’t create C.
Maybe you could use rounding and $MachineEpsilon to get rid of the trailing zeros:
a = {1.000000000000000000, 2.000000000000000000}; (*this is the position*)
b = {1.456783454656574576, 4.546562323253456534}; (*value at that position*)
c = Round[#, $MachineEpsilon] & /@ Transpose[{a, b}]
Thank you for the reply
That would work is I did not want to keep all the digits if they are meaningful. a and b might have more than 16 digits I want to keep. It is not end of the world for me. I just want to keep the output file clean.