MathGroup Archive 1999

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

Search the Archive

Re: compressed list output

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19688] Re: compressed list output
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 11 Sep 1999 16:35:59 -0400
  • Organization: Universitaet Leipzig
  • References: <7r7jhn$cgl@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

I expect that the formating of numbers is somwhere deep inside the
C-Source code of Mathematica. So simply remove the spaces from the final
printout:

lst = {0.1, 0.35, 0.6, 1.4, 2.62291, 6, 20};
str = StringReplace[ToString[lst], " " -> ""]

Hope that helps
  Jens

Rita Bijlsma wrote:
> 
> Hi All,
> 
>   I want to output a list as short as possible, but including
>   all information:
> 
>    {0.1, 0.35, 0.6, 1.4, 2.62291, 6, 20}
> 
>   Should preferably by written as:
> 
>    {.1,.35,.6,1.4,2.62291,6,20}
> 
>   Can someone tell me how to do this? Changing the separator
>   from ", " to "," would already help a lot!
> 
>                     Thanks for all and any help!,
>                                                  Rita
>


  • Prev by Date: Re: Levenberg-Marquart code
  • Next by Date: Re: Mathematica can't win against Tiger Woods
  • Previous by thread: compressed list output
  • Next by thread: Re: compressed list output