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 1997

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

Search the Archive

Re: C f-format-like output in Mma

  • To: mathgroup at
  • Subject: [mg7710] Re: [mg7683] C f-format-like output in Mma
  • From: seanross at
  • Date: Wed, 2 Jul 1997 14:21:30 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Andreas Siemer wrote:
> Hi folks,
> does anyone know whether there is a simple way to format output
> of real numbers in Mma with fixed space and a fixed number of digits
> following the decimal point in a way similar to the C or FORTRAN
> f-format?
> Thanks for any suggestions!
> --
> ---------------------------------------------------------------------------
> From:    Dr. Andreas Siemer
To: mathgroup at
> To: mathgroup at
>          Alfred-Wegener-Institut fuer Polar- und Meeresforschung
>          Sektion Physik I
>          Am Handelhafen 12
>          D-27570 Bremerhaven, Germany
>          Tel.: +49-471-4831-524
>          FAX:  +49-471-4831-425   ( indicate recipient: Siemer/Physik I
> )
>          email: asiemer at
> ---------------------------------------------------------------------------

I don't have the file I wrote to do just that in front of me, but, in
answer to your question, no, there is no simple way, if by simple you
mean a single command.
The way I did it was to use ToString on FortranForm of an expression and
write the strings to file.

  • Prev by Date: RE: 2 problems with 3.0
  • Next by Date: Mma2.2 problem under NeXTSTEP3.3/Intel
  • Previous by thread: Re: 2 problems with 3.0
  • Next by thread: Re: C f-format-like output in Mma