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