MathGroup Archive 2001

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

Search the Archive

Re: possible?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29508] Re: possible?
  • From: "Orestis Vantzos" <atelesforos at hotmail.com>
  • Date: Sat, 23 Jun 2001 01:46:51 -0400 (EDT)
  • Organization: National Technical University of Athens, Greece
  • References: <9gs2pv$k45$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I used a similar command to write a POVRay scene file yesterday. I didn't
get satisfying results, since for instance 1/3 is represented as
"1.\n--\n3." which is ofcourse useless for input in other programs.
The expression I finaly used was : ToString[#,CForm]& which seems to turn
everything to Real number form. POVRay worked just fine with it..
Orestis


"Omega Consulting" <pptssman at yahoo.com> wrote in message
news:9gs2pv$k45$1 at smc.vnet.net...
> Try applying ToString[NumberForm[#, {6, 2}]]&. Many formatting problems
> when writing to file can be fixed by freezing the expression as a string.
>
> At 01:23 AM 6/15/2001, Martin Rommel wrote:
> >I am exporting large tables of real numbers and would like to limit the
> >mantissa.
> >I would think that there should be ConversionOptions for the "Table"
format
> >in Export but cannot find any documentation.
> >Anybody knows more?
> >
> >Applying, e.g., NumberForm[#, {6, 2}]&  to the table does not affect how
the
> >data are saved.
> >
> >Thanks, Martin
>
>




  • Prev by Date: Re: .m file to C or Fortran source code
  • Next by Date: Sun<-> PC
  • Previous by thread: Re: mathlink additions
  • Next by thread: Sun<-> PC