Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Formatting Numeric Outpuit

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104841] Re: [mg104782] Formatting Numeric Outpuit
  • From: "David Park" <djmpark at comcast.net>
  • Date: Wed, 11 Nov 2009 04:29:24 -0500 (EST)
  • References: <27211574.1257851889260.JavaMail.root@n11>

You need:

n1 = RandomReal[100, 10]

n2 = NumberForm[#, {6, 3}] & /@ n1

Column[n2, Right]


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  


From: BenT [mailto:brtubb at pdmusic.org] 


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: Line Wrapping Problems, Slow Delete All Output
  • Next by Date: Re: Formatting Numeric Outpuit
  • Previous by thread: Re: Re: Formatting Numeric Outpuit
  • Next by thread: Re: Formatting Numeric Outpuit