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 2004

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

Search the Archive

Re: Print with limited precision

  • To: mathgroup at
  • Subject: [mg51108] Re: [mg51097] Print with limited precision
  • From: Murray Eisenberg <murray at>
  • Date: Tue, 5 Oct 2004 04:36:52 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <>
  • Reply-to: murray at
  • Sender: owner-wri-mathgroup at

   zz = -27.9873554;
   NumberForm[zz, {4, 2}]

But zz itself is not affected; only the way it displayed was changed.

Steve Gray 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.
> Steve Gray

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: A way around the limitations of Re[] and Im[]
  • Next by Date: Re: Limit problem
  • Previous by thread: Print with limited precision
  • Next by thread: Re: Print with limited precision