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$
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

| improve this answer | |
$\endgroup$
  • $\begingroup$ That easy huh? Nice, thanks!! $\endgroup$ – Q.P. Feb 15 '17 at 15:37

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