Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

number formatting



Hello!

I know there are many ways to format numbers.   I am trying to do
something simple but I can not figure out what is happening.....

If anyone can shed some light on my fumblings I would really appreciate
it!

I am trying to print a cell that has a number displayed with 2 decimal
places.  Could you please help me with what I am doing wrong?

a=SetAccuracy[6,3]

6.00

a

6.00

Print[a]

6.00

The above works.  Then why doesn't the following.....?

CellPrint[Cell[TextData[{"This is a test ",a}], "Text"]]


This is a test 6.


Why doesn't the cell print the number with 2 decimal places?

Thanks!

Tom



  • Prev by Date: Left and right quotes
  • Next by Date: Viewpoint selector and completion crash Mathematica
  • Prev by thread: Re: Left and right quotes
  • Next by thread: Viewpoint selector and completion crash Mathematica