MathGroup Archive 1997

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

Search the Archive

Formatting Numbers in Output

  • To: mathgroup at
  • Subject: [mg9093] Formatting Numbers in Output
  • From: "Russell A. Chipman" <chipmanr at>
  • Date: Mon, 13 Oct 1997 23:33:09 -0400
  • Organization: The University of Alabama in Huntsville
  • Sender: owner-wri-mathgroup at

How can I round numbers to a specified number of digits?  I want to cut
and paste the numbers into other programs or write them to files with 5
digits after the decimal.

Among my many attempts, I tried


It formats the output to show 5 digits  but it just places a wrapper
around the number.  When I cut and pastes, numbers transfer as as 18
digits in Windows or when viewed with FullForm.


    .00001 Round[10000 number]

yields an 18 digit number.  Any good ideas?

Thank you.
Russell Chipman

  • Prev by Date: Re: Useful Dumb User Questions
  • Next by Date: Re: Useful Dumb User Questions
  • Previous by thread: Display Error in 3.0.1 - HEEEEELLLLLLLLLPPPPPPP!
  • Next by thread: Working with large data files (hundreds of megas)