1

I am looking for a way to control the precision of numbers that are elements in a matrix, or list of numbers. Something similar to NumberForm[...] but so that I can use it in conjunction with MatrixForm[...].

Does anyone know how to achieve this?

user27119
  • 2,500
  • 13
  • 34

1 Answers1

2
(m = RandomReal[99, {3, 3}]) // MatrixForm

enter image description here

NumberForm[m // MatrixForm, {5, 2}]

enter image description here

EDIT: See Properties & Relations section of documentation for NumberForm

Bob Hanlon
  • 157,611
  • 7
  • 77
  • 198