I have something like this:
N[Mean[{3.81913, 243.354}], 3]
It outputs
123.587
because the mean of that list is a Machine Precision number and then, N[ ] does nothing. How can I force Mathematica to show the number of digits I want in a case like this one?
Possibly
N[Mean[Rationalize@{3.81913, 243.354}], 3]
is one way to go… when you are working with machine precision numbers then machine precision arithmetic is used throughout the calculation.
SetPrecision[…,3] should do this.
Thanks!, both options worked.