MathGroup Archive 2009

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

Search the Archive

Re: Formatting Numeric Outpuit

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104835] Re: [mg104782] Formatting Numeric Outpuit
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Wed, 11 Nov 2009 04:28:14 -0500 (EST)
  • References: <200911101057.FAA19555@smc.vnet.net>

Perhaps this is what you want:

In[5]:= Column[PaddedForm[#,{6,3}]&/@n1]
Out[5]=  
  47.517
  15.307
  13.930
  70.045
  30.902
   7.979
  86.600
  22.895
  57.105
  65.637

Tomas



> Date: Tue, 10 Nov 2009 05:57:09 -0500
> From: brtubb at pdmusic.org
> Subject: [mg104782] Formatting Numeric Outpuit
> To: mathgroup at smc.vnet.net
>
> Please consider these Mathematica 7 code Input lines:
>
> n1 = RandomReal[100, 10]
>
> n2 = NumberForm[n1, {3, 3}]
>
> Column[n2, Right]
>
> What I expected to get was "ignored", namely right aligned "arbitrary"
> numeric data with 3 digits to the right, and 3 digits to the left of
> the decimal point) formatted in a single column. How can this be
> achieved with any numeric list of data?
>
> --- Benjamin Tubb
>


  • Prev by Date: Re: Formatting Numeric Outpuit
  • Next by Date: Re: Formatting Numeric Outpuit
  • Previous by thread: Re: Formatting Numeric Outpuit
  • Next by thread: Re: Formatting Numeric Outpuit