Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Print with limited precision

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51131] Re: Print with limited precision
  • From: Paul Abbott <paul at physics.uwa.edu.au>
  • Date: Tue, 5 Oct 2004 04:37:32 -0400 (EDT)
  • Organization: The University of Western Australia
  • References: <cjr9ah$osj$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <cjr9ah$osj$1 at smc.vnet.net>,
 Steve Gray <stevebg at adelphia.net> wrote:

> There must be some built-in function to print out decimal quantities with say
> 2 digits of precision to the right of the point. I want quantities such
> as zz= -27.9873554 to print as -27.99, etc., but keeping the real precision
> internally. I could write one easily enough but I would think there is
> already such a thing. This seems trivial but I can't find how to do it in 
> Help, etc.

This is a FAQ. Look up PrintPrecision at

  http://groups.google.com/groups?q=comp.soft-sys.math.mathematica

One of the matches there says:

This is controlled by the PrintPrecision display option. You can control 
this as follows:

[1] Open the Option Inspector (Format menu | Option Inspector...)

[2] Show the Option values for Notebook (or Global)

[3] Type in PrintPrecision

[4] Set this to however many digits you want to display.

Cheers,
Paul

-- 
Paul Abbott                                   Phone: +61 8 6488 2734
School of Physics, M013                         Fax: +61 8 6488 1014
The University of Western Australia      (CRICOS Provider No 00126G)         
35 Stirling Highway
Crawley WA 6009                      mailto:paul at physics.uwa.edu.au 
AUSTRALIA                            http://physics.uwa.edu.au/~paul


  • Prev by Date: Re: Limit problem
  • Next by Date: Re: Re: Root function
  • Previous by thread: Re: Print with limited precision
  • Next by thread: Sterographic plotting program