I have code which outputs numbers, for example,(0.2945847, 0.8647834, 1.6*10^-6) and similar. I would like to take these numbers and round them to 4 significant figures, but I can't find a way to do this.
I know N[expr, digits] can round an expression to certain significant figures but it doesn't seem to work with my numbers.
NumberForm. – Sumit Aug 06 '18 at 13:31