1
$\begingroup$

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?

$\endgroup$
0

1 Answer 1

2
$\begingroup$
(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

$\endgroup$
1
  • $\begingroup$ That easy huh? Nice, thanks!! $\endgroup$
    – user27119
    Commented Feb 15, 2017 at 15:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.