MathGroup Archive 1995

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

Search the Archive

? write/save truncated numbers to file

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg1953] ? write/save truncated numbers to file
  • From: Thang Cao Nguyen <tcnguyen at stereo.ai.uiuc.edu>
  • Date: Sat, 26 Aug 1995 00:10:07 -0400


Hi Mma experts,

Greetings.  The other day i saw another posting with basically the same
question, but haven't seen posted answers yet, so please pardon.

First off, i'm a loyal fan of Mma and WRI, so this is no mean a complain
(how minor it is), but rather, i'm hoping to hear i've been ignorant ...

The idea is that i don't need to save full-accuracy numbers (often
reaching 14-15 decimal places), and instead wanted, say, 2-3 decimal places.
This would cut down the file size by half or so, and even more important,
it makes much better comprehension of the data save.  i'm running things that
gave 100-200+ printed pages each run, and need to run a lot (100+ of runs).  
Truncated numbers is real helpful, as you can imagine.

i've tried to use NumberForm[ exp, numberLength ], but Print/Write
into files just doesn't evaluate the NumberForm function, making the
printed expressions even harder to read.  So, i've been waiting to hear
if someone mentioned this problem/solution.

Thank you for your time and kind help.  i'd appreciate it greatly.

Best regards,
- thang nguyen



  • Prev by Date: Kernel Memory
  • Next by Date: question about nest
  • Previous by thread: Re: Kernel Memory
  • Next by thread: Re: ? write/save truncated numbers to file