The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: silly question on formatting tables
Replies: 4   Last Post: Dec 16, 2012 1:06 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 12/14/12
silly question on formatting tables
Posted: Dec 14, 2012 2:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear all,

Consider the matrix

{{0, 0, 1.19092}, {0.883038, 0, 0.366804}, {0, 0, 0}}

How can I display it in matrixform/tableform so that the integers are displayed as integers and the reals are displayed only with 2 decimals?

If I use MatrixForm, the reals are displayed with 6 decimals, and if I use TableForm all numbers, including integers are displayed with 2 decimals.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.