Consider a table
tabb={{1.233546576,2.454546565},{22334.46687875465,6787233.3565665655}}
I want to convert it into a table where all the numbers are only with 4 digits after the comma, and then export it (to save size of the output file).
This is what I do:
tabbSh={NumberForm[#[[1]], 4],NumberForm[#[[2]], 4]}&/@tabb
However, the elements of the resulting table become non-numeric. Could you please tell me how to fix this problem?
4 digits, do you want a rounding or truncation? e.g.,Round[tabb, 0.0001]– Syed Feb 20 '23 at 10:40foo[x_, n_] := N[FromDigits[RealDigits[x, 10, n]], n]– bmf Feb 20 '23 at 10:55Export? – rhermans Feb 20 '23 at 10:58