Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Number of digits

  • To: mathgroup at
  • Subject: [mg73848] Number of digits
  • From: Robert Pigeon <robert.pigeon at>
  • Date: Fri, 2 Mar 2007 06:24:30 -0500 (EST)
  • Reply-to: robert.pigeon at

Good afternoon,
	How can I force Mathematica to output an answer with a certain number of
significant digits ? What I mean is I want the answer of, let say, 1.0 / 3
to be output in Mathematica as 0.33 for example. The reason I want to do
that is that I am making a table (using TableForm) of a list of answers to
use in a report. I do not want to see 0.33333 in the table just 0.33 !
	I could use SetPrecision[1./3, 2], but I do not want to do that for every
calculation. I have looked at $MachinePrecision and all other $.... , but I
cannot make sense out of it.
	So what I am trying to do, in a nut shell, is do what can be done with a
pocket calculator, set my "visible" answer with a certain number of digits!



Robert Pigeon
TZ = -5

  • Prev by Date: About Mathematica Evaluation...
  • Next by Date: Re: Limit of Floor function
  • Previous by thread: About Mathematica Evaluation...
  • Next by thread: Re: Number of digits