PaddedForm
PaddedForm[expr, n] prints with all numbers in expr padded to leave room for a total of n digits.
PaddedForm[expr, {n, f}]prints with approximate real numbers having exactly f digits to the right of the decimal point.
Examples
Pad to 6 digits:
PaddedForm[3.14, 6]With decimal places:
PaddedForm[Pi, {10, 5}]Format table:
Column[PaddedForm[#, {6, 2}] & /@ {1.5, 12.75, 123.456}]Please visit the official Wolfram Language Reference for more details.